aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorGuy Pyrzak <guy.pyrzak@gmail.com>2011-06-28 22:03:53 -0700
committerGuy Pyrzak <guy.pyrzak@gmail.com>2011-06-28 22:03:53 -0700
commitfb13a2bb7f8802336f8b1d38e3d133af5f5bd501 (patch)
tree38ea8a91e87466a4ff3e765cedc131f77c4ad5a6 /js
parentd6661a06f7a23885746d34df5452b22df5d95c6f (diff)
downloadbugs-fb13a2bb7f8802336f8b1d38e3d133af5f5bd501.tar
bugs-fb13a2bb7f8802336f8b1d38e3d133af5f5bd501.tar.gz
bugs-fb13a2bb7f8802336f8b1d38e3d133af5f5bd501.tar.bz2
bugs-fb13a2bb7f8802336f8b1d38e3d133af5f5bd501.tar.xz
bugs-fb13a2bb7f8802336f8b1d38e3d133af5f5bd501.zip
Bug 652427: Going back to the new bug page loses the description if possible duplicates have been searched for
r=mkanat, r=mkanat
Diffstat (limited to 'js')
-rw-r--r--js/bug.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/bug.js b/js/bug.js
index ab3322ccd..06ef03da1 100644
--- a/js/bug.js
+++ b/js/bug.js
@@ -88,11 +88,11 @@ YAHOO.bugzilla.dupTable = {
formatCcButton: function(el, oRecord, oColumn, oData) {
var url = 'process_bug.cgi?id=' + oRecord.getData('id')
+ '&addselfcc=1&token=' + escape(oData);
- var button = document.createElement('button');
- button.setAttribute('type', 'button');
+ var button = document.createElement('a');
+ button.setAttribute('href', url);
button.innerHTML = YAHOO.bugzilla.dupTable.addCcMessage;
- button.onclick = function() { window.location = url; return false; };
el.appendChild(button);
+ new YAHOO.widget.Button(button);
},
init_ds: function() {
var new_ds = new YAHOO.util.XHRDataSource("jsonrpc.cgi");