User:RobertG/vector.js: Difference between revisions
Appearance
Content deleted Content added
tweak |
m fix JS |
||
Line 8: | Line 8: | ||
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]] |
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]] |
||
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]] |
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]] |
||
⚫ | |||
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function() { |
|||
addPortletLink('p-cactions', ' |
var el = mw.util.addPortletLink('p-cactions', '', 'Link Classifier'); |
||
⚫ | |||
⚫ | |||
LinkClassifier.onDemand(); |
|||
} ); |
|||
⚫ |
Revision as of 20:31, 3 October 2017
window.popupStructure = 'menus';
window.popupAdminLinks = true;
window.popupFixDabs = true;
// [[User:Anomie/linkclassifier]]
LinkClassifierOnDemand=true;
importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function() {
var el = mw.util.addPortletLink('p-cactions', '', 'Link Classifier');
$(el).click(function() {
LinkClassifier.onDemand();
} );
} );