/* _____________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page before editing. |
* |_____________________________________________________________________________|
*
* Create a toolbox link to for one-click access for filing new bug reports with Bugzilla.
* Revision: 1.0
* Author: Technical_13 (AKA ShoeMaker)
*/
mw.util.addPortletLink(
'p-tb',
'#',
'File Bugzilla report',
't-messagenames',
null,
'File a new bug report with Bugzilla.'
);
function uiBugzilla(){
var popupHTML = '<div id="bz-ui" style="display: none; z-index: 1000; background-color: #FFDBDB; padding: 4px; border: 1px solid #BB7070; border-radius: 6px; text-align: left; font-size: 11px; color: black; display: block; position: absolute; top: 20px; left: 50px;" class="ui-draggable"><form action="#" method="get"><div style="font-weight: bold; border-bottom: 1px solid #AAA; padding: 4px;"><span id="bz-title"><big><b>Bugzilla</b></big> - Bug report starter</span><span style="float: right; text-transform: none;"><a id="bz-close" style="cursor: pointer" onclick="MRollback.GUI.close();"><img src="http://upload.wikimedia.org/wikipedia/commons/b/b6/Chrome_close_button.png"/></a></span></div></form></div>';
$('body').append(popupHTML);
$('#bz-ui').show();
$('#bz-ui').draggable();
}
$( listStyle ).click( function ( e ) {
e.preventDefault();
console.group( 'Initialize variables' );
var createLink = 'https://bugzilla.wikimedia.org/enter_bug.cgi';
console.info( 'Base link is %s', createLink );
var product = "MediaWiki";
console.info( 'Default product is %s', product );
var component = "General/Unknown";
console.info( 'Default component is %s', component );
console.groupEnd( 'Initialize variables' );
});