מייבאים כמותיים, בדוקי עריכות אוטומטית, ביוראקראטן, אינטערפעיס רעדאקטארן, emailconfirmed, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, סיסאפן, צוות טכני, מייבאים, מעדכנים, אספקלריה רעדאקטארן
102,362
רעדאגירונגען
אין תקציר עריכה |
(log off; מינימאלע אפטימיזאציעס) |
||
| (2 צווישנדיגע ווערסיעס פונעם זעלבן באַניצער נישט געוויזן) | |||
| שורה 1: | שורה 1: | ||
$('#wpTextbox1').on('wikiEditor-dialogs-loaded-insert-reference', function () { | $('#wpTextbox1').on('wikiEditor-dialogs-loaded-insert-reference', function () { | ||
$('#wikieditor-toolbar-reference-dialog').on('dialogopen', function () { | $('#wikieditor-toolbar-reference-dialog').on('dialogopen', function () { | ||
var | var | ||
dialog = $(this).parent(), | dialog = $(this).parent(), | ||
| שורה 21: | שורה 16: | ||
+ ($.trim(refName) ? 'שם=' + refName + '|' : '') | + ($.trim(refName) ? 'שם=' + refName + '|' : '') | ||
+ (/=/.test(refContent) ? '1=' : ''); | + (/=/.test(refContent) ? '1=' : ''); | ||
// Close the dialog | // Close the dialog | ||
$this.dialog('close'); | $this.dialog('close'); | ||
$.wikiEditor.modules.toolbar.fn.doAction( | $.wikiEditor.modules.toolbar.fn.doAction( | ||
$this.data('context'), | $this.data('context'), | ||
| שורה 41: | שורה 30: | ||
$this | $this | ||
); | ); | ||
// Restore form state | // Restore form state | ||
$('#wikieditor-toolbar-reference-text').val(''); | $('#wikieditor-toolbar-reference-text').val(''); | ||
$('#' + refnameId).val(''); | $('#' + refnameId).val(''); | ||
}; | }; | ||
| שורה 58: | שורה 45: | ||
}); | }); | ||
}); | }); | ||
$(function () { | $(function () { | ||
var action = $('[rel=reference]').data('action'), | mw.hook('wikiEditor.toolbarReady').add(function ($textarea) { | ||
var action = $('[rel=reference]').data('action'), | |||
options = (action || {}).options; | |||
if (options) { | |||
options.pre = '{{הערה|1='; | |||
options.post = '}}'; | |||
} | |||
action = $('[rel=newline]').data('action'); | |||
options = (action || {}).options; | options = (action || {}).options; | ||
if (options) | |||
options.pre = '{{ש}}\n'; | |||
else | |||
$('#wpTextbox1').on('wikiEditor-toolbar-buildSection-advanced', function (e, d) { | |||
d.groups.format.tools.newline.action.options.pre = '{{ש}}\n'; | |||
}); | |||
}); | |||
}); | |||
} | |||
רעדאגירונגען