מדיה ויקי:Gadget-TemplatesExternalLinks.js: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 385: | שורה 385: | ||
if (typeof $.wikiEditor != 'undefined' && $.wikiEditor.isSupported() && mw.user.options.get('usebetatoolbar')) | if (typeof $.wikiEditor != 'undefined' && $.wikiEditor.isSupported() && mw.user.options.get('usebetatoolbar')) | ||
mw.loader.using('jquery.wikiEditor.toolbar.config', function() { | mw.loader.using('jquery.wikiEditor.toolbar.config', function() { | ||
$(document).ready(function() { | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'advanced', | section: 'advanced', | ||
groups: { | groups: { | ||
| שורה 401: | שורה 401: | ||
} | } | ||
}); | }); | ||
}); | |||
} | }); | ||
else | else | ||
mw.loader.using('jquery.wikiEditor.toolbar.config', function() { | |||
mw.loader.using( | $(document).ready(function() { | ||
$('div #toolbar').append( // "old style" | |||
$('<img>', {src: '//upload.wikimedia.org/wikipedia/commons/3/34/Button_LINK_HE1.png', title: 'תבנית קישור', 'class': 'mw-toolbar-editbutton'}) | $('<img>', {src: '//upload.wikimedia.org/wikipedia/commons/3/34/Button_LINK_HE1.png', title: 'תבנית קישור', 'class': 'mw-toolbar-editbutton'}) | ||
.css({cursor: 'pointer'}) | .css({cursor: 'pointer'}) | ||
.click(function() {mediaWiki.loader.using('jquery.ui.dialog', fireDialog);}) | .click(function() {mediaWiki.loader.using('jquery.ui.dialog', fireDialog);}) | ||
); | ); | ||
}); | |||
}); | }); | ||
}); | }); | ||
}); | }); | ||