אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Gadget-TemplatesExternalLinks.js"

אידיש
(אידיש)
(אידיש)
שורה 263: שורה 263:


if (template.bm)
if (template.bm)
dialog.append($('<p>', {title: 'זעט בלאט "הילף:בוקמרקלטים"'}).css({color: 'red', fontWeight: 'bold'})
dialog.append($('<p>', {title: 'זעט בלאט "המכלול:בוקמרקלטים"'}).css({color: 'red', fontWeight: 'bold'})
.text('עס עקזיסטירט בוקמארקלעט וואס שאפט אויטאטאמאטיש מוסטער "' + template.t + '". ביטע באטראכט דאס צו ניצן (זעט "הילף:בוקמרקלטים").'))
.text('עס עקזיסטירט א בוקמארקלעט וואס שאפט אויטאטאמאטיש מוסטער "' + template.t + '". ביטע באטראכט דאס צו ניצן (זעט "המכלול:בוקמרקלטים").'))
.append($('<hr>'));
.append($('<hr>'));


שורה 313: שורה 313:


dialog.dialog('option', 'buttons', {
dialog.dialog('option', 'buttons', {
'ביטול':
'אַנוליר':
function() {
function() {
dialog.dialog('close');
dialog.dialog('close');
},
},
'אישור':
'באַשטעטיג':
function() {
function() {
$("#wpTextbox1").textSelection( 'encapsulateSelection', {peri: createWikiCode(), replace: true} );
$("#wpTextbox1").textSelection( 'encapsulateSelection', {peri: createWikiCode(), replace: true} );
שורה 367: שורה 367:
var selector = $('<select>', {'class': 'ltw_disposable'}).change(function() { // class in quotes - reserved word.
var selector = $('<select>', {'class': 'ltw_disposable'}).change(function() { // class in quotes - reserved word.
if (! this.value) return;
if (! this.value) return;
dialog.dialog('option', 'title', title + ' עבור ' + this.value);
dialog.dialog('option', 'title', title + ' פאר ' + this.value);
$(this).remove();
$(this).remove();
templateDialog(dialog, templates(this.value));
templateDialog(dialog, templates(this.value));
});
});
selector.append($('<option>', {text: 'וועלט מוסטער פון ליסטע'}));
selector.append($('<option>', {text: 'וועלט א מוסטער פון ליסטע'}));
for (var i in allTemplates)
for (var i in allTemplates)
selector.append($('<option>', {text: allTemplates[i], value: allTemplates[i]}));
selector.append($('<option>', {text: allTemplates[i], value: allTemplates[i]}));