]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 652427: Going back to the new bug page loses the description if possible duplicat...
authorGuy Pyrzak <guy.pyrzak@gmail.com>
Wed, 29 Jun 2011 05:03:53 +0000 (22:03 -0700)
committerGuy Pyrzak <guy.pyrzak@gmail.com>
Wed, 29 Jun 2011 05:03:53 +0000 (22:03 -0700)
r=mkanat, r=mkanat

js/bug.js
skins/standard/enter_bug.css
template/en/default/bug/create/create.html.tmpl
template/en/default/global/header.html.tmpl

index ab3322ccdafe9ca0cb265dfae9aa4f943f95286f..06ef03da11463259f7247b940ff12335d6c3544b 100644 (file)
--- 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");
index bb8b050347b9916941fd78793ca24f5f7f47b6bf..88d9e9e8554e370f240fa63f2ae36fb5f542b8b3 100644 (file)
@@ -68,3 +68,5 @@
 }
 /* Make the Add Me to CC button never wrap. */
 #possible_duplicates .yui-dt-col-update_token { white-space: nowrap; }
+
+form#Create #possible_duplicates td { vertical-align: middle; }
\ No newline at end of file
index 29d79863f01ebe0851dab97d239c0b651571e986..3bb5b3a87f92bf89be181d6b30d43a4ff78e86c0 100644 (file)
@@ -30,7 +30,7 @@
 
 [% PROCESS global/header.html.tmpl
   title = title
-  yui = [ 'autocomplete', 'calendar', 'datatable' ]
+  yui = [ 'autocomplete', 'calendar', 'datatable', 'button' ]
   style_urls = [ 'skins/standard/attachment.css',
                  'skins/standard/enter_bug.css' ]
   javascript_urls = [ "js/attachment.js", "js/util.js",
index c7c104e295ee75d0c49d47fbbe87fee8c54573d6..b36ce37d2e455fc3fde6d44d30f71b4c78182759 100644 (file)
@@ -1,4 +1,4 @@
-[%# The contents of this file are subject to the Mozilla Public
+  [%# The contents of this file are subject to the Mozilla Public
   # License Version 1.1 (the "License"); you may not use this file
   # except in compliance with the License. You may obtain a copy of
   # the License at http://www.mozilla.org/MPL/
@@ -53,6 +53,7 @@
   autocomplete => 1,
   calendar     => 1,
   datatable    => 1,
+  button       => 1,
 } %]
 
 [%# Note: This is simple dependency resolution--you can't have dependencies