מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף
הוספת using toolbar לטעינה |
|||
| שורה 490: | שורה 490: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
if (typeof $.wikiEditor == 'object' && $.wikiEditor.supported) | if (typeof $.wikiEditor == 'object' && $.wikiEditor.supported && mw.user.options.get('usebetatoolbar')) | ||
mw.loader.using('ext.wikiEditor.toolbar', function() { | |||
$('#wpTextbox1').wikiEditor('addToToolbar', { | |||
section: 'advanced', | |||
group: 'wizards', | |||
tools: { | |||
'linkTemplatewizard': { | |||
label: i18n('button hint'), | |||
type: 'button', | |||
icon: '//upload.wikimedia.org/wikipedia/commons/d/dd/Vector_toolbar_template_button.png', | |||
action: {type: 'callback', execute: doIt} | |||
} | |||
} | |||
}); | |||
}); | |||
else | else | ||
$('div #toolbar').append( // "old style" | $('div #toolbar').append( // "old style" | ||