diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-23 20:18:23 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-03-23 20:18:23 +0100 |
commit | 2e5993bc9bd0d468f4e9d12dd39e0548ba9adda1 (patch) | |
tree | f31a0d612efbfa5beb78e4718768c55c650f14d8 /data/lib/skip-bug.js | |
parent | c662ccddab2cbcc6d13f49a21c04a6aea808f457 (diff) | |
download | bugzilla-triage-2e5993bc9bd0d468f4e9d12dd39e0548ba9adda1.tar.gz |
Fix indentation and else for Mozilla coding guidelines.
Diffstat (limited to 'data/lib/skip-bug.js')
-rw-r--r-- | data/lib/skip-bug.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/data/lib/skip-bug.js b/data/lib/skip-bug.js index da6f606..3639448 100644 --- a/data/lib/skip-bug.js +++ b/data/lib/skip-bug.js @@ -3,17 +3,17 @@ // "use strict"; function reloadPage() { - var stemURL = 'https://HOSTNAME/show_bug.cgi?id='; - var titleElems = document.getElementsByTagName('title'); - if (titleElems) { - var REArr = new RegExp('[bB]ug\\s+([0-9]+)'). - exec(titleElems[0].textContent); - var hostname = document.location.hostname; - if (REArr) { - document.location = stemURL. - replace('HOSTNAME',hostname) + REArr[1]; - } + var stemURL = 'https://HOSTNAME/show_bug.cgi?id='; + var titleElems = document.getElementsByTagName('title'); + if (titleElems) { + var REArr = new RegExp('[bB]ug\\s+([0-9]+)'). + exec(titleElems[0].textContent); + var hostname = document.location.hostname; + if (REArr) { + document.location = stemURL. + replace('HOSTNAME',hostname) + REArr[1]; } + } } reloadPage(); |