User:Technical 13/SandBox/Gadget-BugCreateNew.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:Technical 13/SandBox/Gadget-BugCreateNew. |
/* _____________________________________________________________________________
* | |
* | === 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' );
});