מדיה ויקי:Gadget-TemplatesExternalLinks.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
←using [[mw:CodeEditor|CodeEditor]]: מיקום כפתורים |
||
| שורה 7: | שורה 7: | ||
function templates(templateName) { | |||
var constants = ["", | var constants = ["", | ||
"שם המחבר", | "שם המחבר", | ||
| שורה 318: | שורה 318: | ||
dialog.dialog('option', 'buttons', { | dialog.dialog('option', 'buttons', { | ||
'ביטול': | |||
function() { | |||
dialog.dialog('close'); | |||
}, | |||
'אישור': | 'אישור': | ||
function() { | function() { | ||
insertTags('', createWikiCode(), ''); | insertTags('', createWikiCode(), ''); | ||
dialog.dialog('close'); | dialog.dialog('close'); | ||
} | |||
}); | }); | ||
$('.ui-dialog-buttonpane').css({backgroundColor: '#E0E0E0'}); | $('.ui-dialog-buttonpane').css({backgroundColor: '#E0E0E0'}); | ||
| שורה 334: | שורה 334: | ||
position: [(window.width - dialog.width()) / 2, (window.height - dialog.height()) / 2] | position: [(window.width - dialog.width()) / 2, (window.height - dialog.height()) / 2] | ||
}); | }); | ||
$('.ui-dialog-buttonpane'). | $('.ui-dialog-buttonpane').children().css({float: 'right'}); | ||
updatePreview(); | updatePreview(); | ||
} | } | ||