מייבאים כמותיים, בדוקי עריכות אוטומטית, ביוראקראטן, אינטערפעיס רעדאקטארן, emailconfirmed, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, סיסאפן, צוות טכני, מייבאים, מעדכנים, אספקלריה רעדאקטארן
102,362
רעדאגירונגען
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 3: | שורה 3: | ||
// | // | ||
function checkSearchInput() { | function checkSearchInput() { | ||
var shortcuts = new Array(21) | var shortcuts = new Array(21) | ||
for (var i = 0; i < shortcuts.length; i++) | for (var i = 0; i < shortcuts.length; i++) | ||
| שורה 51: | שורה 50: | ||
text = document.getElementById('searchInput'); | text = document.getElementById('searchInput'); | ||
for (i = 0; i < shortcuts.length; i++) { | for (i = 0; i < shortcuts.length; i++) { | ||
var rxEdit = new RegExp('^ר' + shortcuts[i][0]); | var rxEdit = new RegExp('^ר' + shortcuts[i][0]); | ||
if (rxEdit.test(text.value)) { | if (rxEdit.test(text.value)) { | ||
text.value = text.value.replace(rxEdit, shortcuts[i][1]); | text.value = text.value.replace(rxEdit, shortcuts[i][1]); | ||
document.location = '//yi.hamichlol.org.il/w/index.php?title=' + text.value + '&action=edit'; | document.location = '//yi.hamichlol.org.il/w/index.php?title=' + text.value + '&action=edit'; | ||
| שורה 68: | שורה 65: | ||
var rxPI = new RegExp('^/'); | var rxPI = new RegExp('^/'); | ||
if (rxPI.test(text.value)) { | if (rxPI.test(text.value)) { | ||
document.location = '//yi.hamichlol.org.il/w/index.php?title=' + "באַזונדער:הדף_שלי" + text.value; | document.location = '//yi.hamichlol.org.il/w/index.php?title=' + "באַזונדער:הדף_שלי" + text.value; | ||
return false; | return false; | ||
| שורה 81: | שורה 77: | ||
function addCheckSearchInput() { | function addCheckSearchInput() { | ||
var form = document.getElementById('searchform'); | var form = document.getElementById('searchform'); | ||
if (!form) { | if (!form) { | ||
return; | return; | ||
} | } | ||
form.onsubmit = function () { return checkSearchInput(); } | form.onsubmit = function () { return checkSearchInput(); } | ||
} | } | ||
$(addCheckSearchInput); | $(addCheckSearchInput); | ||
רעדאגירונגען