diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 13:28:55 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 18:26:14 +0200 |
commit | 32af48e442a960b8c3f199f5ffad28a34590fcda (patch) | |
tree | c291cb97627bd2cfb65167347261d5ef8f521bfd /data/lib/bug-page-mod.js | |
parent | 2382ba19afc84e9b747a7981ebf72aaa704f08b6 (diff) | |
download | bugzilla-triage-32af48e442a960b8c3f199f5ffad28a34590fcda.tar.gz |
Reformatting to MoFo coding style
Diffstat (limited to 'data/lib/bug-page-mod.js')
-rw-r--r-- | data/lib/bug-page-mod.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/data/lib/bug-page-mod.js b/data/lib/bug-page-mod.js index e29b1bc..a405edb 100644 --- a/data/lib/bug-page-mod.js +++ b/data/lib/bug-page-mod.js @@ -43,7 +43,8 @@ function tweakBugzilla(d) { // Put the quicksearch text in the quicksearch boxes quicksearchHandler(d); - if (!d.getElementById("comments")) // don't process the mid-air collision pages + if (!d.getElementById("comments")) // don't process the mid-air collision + // pages return; // Make the comment box bigger @@ -270,7 +271,8 @@ function tweakBugzilla(d) { item = historyItems[++i].querySelectorAll("td") ccPrefix = (trimContent(item[0]) == 'CC') ? '<span class="bztw_cc bztw_historyitem">' : '<span class="bztw_historyitem">'; - // avoid showing a trailing semicolon if the previous entry wasn't a CC and this one is + // avoid showing a trailing semicolon if the previous entry + // wasn't a CC and this one is var prefix = ccSuffix + ccPrefix; // check to see if this is a flag setting flagsFound = findFlag(item); @@ -594,7 +596,8 @@ AttachmentFlagHandlerCtor.prototype = { } } - // try to put the flag name and type part in a span which we will + // try to put the flag name and type part in a span + // which we will // use in setupLinks to inject links into. match = this._reLinkifyInterestingFlag.exec(text); if (match) { @@ -626,7 +629,8 @@ AttachmentFlagHandlerCtor.prototype = { if (!(id in this._db)) { this._db[id] = []; } - name = name.split('@')[0]; // convert the name to the fraction before the @ + name = name.split('@')[0]; // convert the name to the fraction + // before the @ var added = this._parseData(name, trimContent(item[base + 2])); for (var i = 0; i < added.length; ++i) { var flag = added[i]; |