diff options
author | Ehsan Akhgari <ehsan@mozilla.com> | 2011-02-22 00:45:10 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan@mozilla.com> | 2011-02-22 00:45:10 -0500 |
commit | 99fc41e4c0cf07af51337403aa17085ca94d8928 (patch) | |
tree | 8455090c91f31b0218d62f0cba87b647fed27051 | |
parent | b5c3c923a36d1eb6d470e9b0939cc32f47b083f0 (diff) | |
download | bugzilla-triage-99fc41e4c0cf07af51337403aa17085ca94d8928.tar.gz |
More whitespace adjustments
-rw-r--r-- | data/js/bug-page-mod.js | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/data/js/bug-page-mod.js b/data/js/bug-page-mod.js index bb0e566..acf0746 100644 --- a/data/js/bug-page-mod.js +++ b/data/js/bug-page-mod.js @@ -1156,42 +1156,42 @@ function htmlEncode(str) { } function addNewLinks(d) { - var product = d.querySelector("#field_container_product option[selected]"); - var component = d.querySelector("#component option[selected]"); - - if (product) { - var label = d.getElementById('field_container_product'); - var url = 'enter_bug.cgi?product=' + encodeURIComponent(product.value); - span.innerHTML = "(<a href='" + url + "'>new</a>)"; - if (label) { - label.appendChild(d.createTextNode("(")); - var link = d.createElement('a'); - link.href = url; - link.textContent = "new"; - link.title = "File a new bug in the same Product"; - var span = d.createElement('span'); - span.appendChild(link); - label.appendChild(span); - label.appendChild(d.createTextNode(")")); - } + var product = d.querySelector("#field_container_product option[selected]"); + var component = d.querySelector("#component option[selected]"); + + if (product) { + var label = d.getElementById('field_container_product'); + var url = 'enter_bug.cgi?product=' + encodeURIComponent(product.value); + span.innerHTML = "(<a href='" + url + "'>new</a>)"; + if (label) { + label.appendChild(d.createTextNode("(")); + var link = d.createElement('a'); + link.href = url; + link.textContent = "new"; + link.title = "File a new bug in the same Product"; + var span = d.createElement('span'); + span.appendChild(link); + label.appendChild(span); + label.appendChild(d.createTextNode(")")); } + } - if (product && component) { - var select = d.querySelector("select#component"); - var label = select.parentNode; - var url = 'enter_bug.cgi?product=' + encodeURIComponent(product.value) + '&component=' + encodeURIComponent(component.value); - if (label) { - label.appendChild(d.createTextNode("(")); - var link = d.createElement('a'); - link.href = url; - link.textContent = "new"; - link.title = "File a new bug in the same Product and Component"; - var span = d.createElement('span'); - span.appendChild(link); - label.appendChild(span); - label.appendChild(d.createTextNode(")")); - } + if (product && component) { + var select = d.querySelector("select#component"); + var label = select.parentNode; + var url = 'enter_bug.cgi?product=' + encodeURIComponent(product.value) + '&component=' + encodeURIComponent(component.value); + if (label) { + label.appendChild(d.createTextNode("(")); + var link = d.createElement('a'); + link.href = url; + link.textContent = "new"; + link.title = "File a new bug in the same Product and Component"; + var span = d.createElement('span'); + span.appendChild(link); + label.appendChild(span); + label.appendChild(d.createTextNode(")")); } + } } function tbplbotSpamCollapser(d) { |