User:ATDT/common.js

//importScript('User:Robmoen/projectStatusHelper.js'); // Tutorial //importScript('MediaWiki:Tutorial-QuickRC.js'); //$('#content').css('border','solid 10px red'); // Add MediaWiki.org-link in the toolbox before the Print-link /* mediaWiki.loader.using(['jquery.ui.dialog'], function{   link = mw.util.addPortletLink( 'p-tb', '//www.mediawiki.org/', 'Open dialog', 't-mworg', 'Open a sample dialog ', 'm', '#t-print' );   $(link).click(function(event){ event.preventDefault; $.getJSON('/w/api.php', {           action: 'help',            format: 'json'        }, function(data) {            $(' ').text(JSON.stringify(data)).dialog;        }) }); }); //Guiders importScript('User:Tychay/guiders.js'); link = mw.util.addPortletLink( 'p-tb', '//www.mediawiki.org/', 'Launch Tour',       't-mworg', 'Open a sample dialog ', 'm', '#t-print' ); $(link).click(function {   guiders.resume('gt-test-1'); }); // mw. jQuery(document).ready(function($) {   window.gt_hide_tour = function (tour_name) {    	guiders.hideAll; //Hide current guider		//guiders.endTour; //remove cookies and hide guider		//guiders.show('gt-hide'); //show future help notice		// notify that we are dismissing the tour		//(not sure we need this)		//$.ajax({url:ajaxurl, data:{action:'guided_tour_hide', tour: GTL10n.tour, nonce: GTL10n.nonce }});		// TODO: should launch a default tour element	}    guiders.cookie = 'mw-tour';    guiders.currentTour = ''; guiders.initGuider({ id: "gt-test-1", title: 'test', description: 'This is a test', // attachment overlay: true, next: "gi-test-2", buttons: [ { name: 'hide tour', onclick: gt_hide_tour, classString: "plain" }, //{ name: 'Next', onclick: guiders.next } { name: 'End Tour', onclick: guiders.endTour } ] }); });