מדיה ויקי:Gadget-TemplatesExternalLinks.js: הבדלים בין גרסאות בדף
←using [[mw:CodeEditor|CodeEditor]]: מיקום כפתורים |
מ ביטול setTimeout |
||
| שורה 3: | שורה 3: | ||
if ($.inArray(wgAction, ['edit', 'submit']) + 1) $(document).ready(function() { | if ($.inArray(wgAction, ['edit', 'submit']) + 1) $(document).ready(function() { | ||
mw.loader.using('jquery.textSelection', function() { | mw.loader.using('jquery.textSelection', function() { | ||
function templates(templateName) { | function templates(templateName) { | ||
| שורה 384: | שורה 381: | ||
} | } | ||
$(document).ready(function() { | |||
var buttonImage = '//upload.wikimedia.org/wikipedia/commons/3/34/Button_LINK_HE1.png'; | var buttonImage = '//upload.wikimedia.org/wikipedia/commons/3/34/Button_LINK_HE1.png'; | ||
$('div #toolbar').append( // "old style" | $('div #toolbar').append( // "old style" | ||
| שורה 394: | שורה 391: | ||
$('#wpTextbox1').wikiEditor('addToToolbar', { | $('#wpTextbox1').wikiEditor('addToToolbar', { | ||
section: 'advanced', | section: 'advanced', | ||
groups: { | |||
'wizards': { | |||
tools: { | |||
'linkTemplatewizard': { | |||
label: 'תבנית קישור', | |||
type: 'button', | |||
icon: buttonImage, | |||
} | action: {type: 'callback', execute: fireDialog} | ||
} | |||
}}} | |||
}); | }); | ||
} | }); | ||
}); | }); | ||
}); | }); | ||