מדיה ויקי:Gadget-TemplatesExternalLinks.js: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מ group נכון |
||
| שורה 385: | שורה 385: | ||
} | } | ||
if (mw.user.options.get('usebetatoolbar')) | if (mw.user.options.get('usebetatoolbar')) { | ||
var depend = ['jquery.wikiEditor','jquery.wikiEditor.toolbar.config','ext.wikiEditor.toolbar']; | |||
if (mw.user.options.get('usebetatoolbar-cgd')) | |||
depend.push('jquery.wikiEditor.dialogs.config');//buttons are removed and replaced... | |||
mw.loader.using(depend, function() { | |||
if(typeof $.wikiEditor != 'undefined' && $.wikiEditor.isSupported()) | if(typeof $.wikiEditor != 'undefined' && $.wikiEditor.isSupported()) | ||
$(function() { | $(function() { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'main', | section: 'main', | ||
group: 'insert', | |||
tools: { | |||
'linkTemplatewizard': { | |||
label: 'תבנית קישור', | |||
type: 'button', | |||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Gnome-web-browser.svg/22px-Gnome-web-browser.svg.png', | |||
action: {type: 'callback', execute: fireDialog} | |||
} | } | ||
} | } | ||
}); | }); | ||
}); | }); | ||
}); | }); | ||
} | |||
else | else | ||
mw.loader.using('mediawiki.action.edit', function() { | mw.loader.using('mediawiki.action.edit', function() { | ||