מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מאין תקציר עריכה
שורה 490: שורה 490:


$(document).ready(function() {
$(document).ready(function() {
var buttonImage = '//upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png';
if (typeof $.wikiEditor == 'object' && $.wikiEditor.supported)
if (typeof $.wikiEditor == 'object' && $.wikiEditor.supported)
$('#wpTextbox1').wikiEditor('addToToolbar', {
$('#wpTextbox1').wikiEditor('addToToolbar', {
שורה 500: שורה 499:
label: i18n('button hint'),
label: i18n('button hint'),
type: 'button',
type: 'button',
icon: buttonImage,
icon: '//upload.wikimedia.org/wikipedia/commons/d/dd/Vector_toolbar_template_button.png',
action: {type: 'callback', execute: doIt}
action: {type: 'callback', execute: doIt}
}
}
שורה 509: שורה 508:
else
else
$('div #toolbar').append( // "old style"
$('div #toolbar').append( // "old style"
$('<img>', {src: buttonImage, title: i18n('button hint'), 'class': 'mw-toolbar-editbutton'})
$('<img>', {src: '//upload.wikimedia.org/wikipedia/commons/e/eb/Button_plantilla.png', title: i18n('button hint'), 'class': 'mw-toolbar-editbutton'})
.css({cursor: 'pointer'})
.css({cursor: 'pointer'})
.click(doIt)
.click(doIt)