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");
}
/* 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
[% 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",
-[%# 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/
autocomplete => 1,
calendar => 1,
datatable => 1,
+ button => 1,
} %]
[%# Note: This is simple dependency resolution--you can't have dependencies