From fb13a2bb7f8802336f8b1d38e3d133af5f5bd501 Mon Sep 17 00:00:00 2001 From: Guy Pyrzak Date: Tue, 28 Jun 2011 22:03:53 -0700 Subject: Bug 652427: Going back to the new bug page loses the description if possible duplicates have been searched for r=mkanat, r=mkanat --- js/bug.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') 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"); -- cgit v1.2.3-24-g4f1b