מייבאים כמותיים, בדוקי עריכות אוטומטית, ביוראקראטן, אינטערפעיס רעדאקטארן, emailconfirmed, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, סיסאפן, צוות טכני, מייבאים, מעדכנים, אספקלריה רעדאקטארן
102,362
רעדאגירונגען
(log) |
(log off; מינימאלע אפטימיזאציעס) |
||
| שורה 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(), | ||
| שורה 20: | שורה 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'), | ||
| שורה 40: | שורה 30: | ||
$this | $this | ||
); | ); | ||
// Restore form state | // Restore form state | ||
$('#wikieditor-toolbar-reference-text').val(''); | $('#wikieditor-toolbar-reference-text').val(''); | ||
$('#' + refnameId).val(''); | $('#' + refnameId).val(''); | ||
}; | }; | ||
| שורה 60: | שורה 48: | ||
$(function () { | $(function () { | ||
mw.hook('wikiEditor.toolbarReady').add(function ($textarea) { | mw.hook('wikiEditor.toolbarReady').add(function ($textarea) { | ||
var action = $('[rel=reference]').data('action'), | var action = $('[rel=reference]').data('action'), | ||
options = (action || {}).options; | options = (action || {}).options; | ||
if (options) { | if (options) { | ||
options.pre = '{{הערה|1='; | options.pre = '{{הערה|1='; | ||
| שורה 70: | שורה 55: | ||
} | } | ||
action = $('[rel=newline]').data('action'); | action = $('[rel=newline]').data('action'); | ||
options = (action || {}).options; | options = (action || {}).options; | ||
if (options) | if (options) | ||
options.pre = '{{ש}}\n'; | options.pre = '{{ש}}\n'; | ||
| שורה 80: | שורה 63: | ||
}); | }); | ||
}); | }); | ||
}) | }); | ||
רעדאגירונגען