מדיה ויקי:Gadget-TemplatesExternalLinks.js: הבדלים בין גרסאות בדף
Maintenance: mw:RL/MGU / mw:RL/JD - phab:T169385 - deprecated in jQuery 3.0 |
מ 166 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-TemplatesExternalLinks.js יובאו |
||
| (3 גרסאות ביניים של 2 משתמשים אינן מוצגות) | |||
| שורה 381: | שורה 381: | ||
if (mw.user.options.get('usebetatoolbar')) { | if (mw.user.options.get('usebetatoolbar')) { | ||
var depend = [ | var depend = ['ext.wikiEditor']; | ||
mw.loader.using(depend, function() { | mw.loader.using(depend, function() { | ||
if(typeof $.wikiEditor != 'undefined' | if(typeof $.wikiEditor != 'undefined') | ||
$(function() { | $(function() { | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
| שורה 412: | שורה 410: | ||
$('<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() { | .click(function() {mw.loader.using('jquery.ui', fireDialog);}) | ||
); | ); | ||
}); | }); | ||
}); | }); | ||
}); | }); | ||