1,457
עריכות
מ (מ. רובין העביר את הדף מדיה ויקי:FixHistPage.js לשם מדיה ויקי:Group-sysop.js בלי להשאיר הפניה) |
אין תקציר עריכה |
||
| שורה 20: | שורה 20: | ||
showHideLinksBtn.onclick = function() { showHideLinksBtn.disabled="disabled"; showHideRevLinks(); return false; } | showHideLinksBtn.onclick = function() { showHideLinksBtn.disabled="disabled"; showHideRevLinks(); return false; } | ||
var historysubmit = | var historysubmit = document.querySelector('input.historysubmit'); | ||
if (historysubmit == null) // only one edit in page - attach button to "pagehistory" id; | if (historysubmit == null) // only one edit in page - attach button to "pagehistory" id; | ||
historysubmit = document.getElementById('pagehistory'); | historysubmit = document.getElementById('pagehistory'); | ||
| שורה 39: | שורה 39: | ||
$(hideHideRevLinks); | $(hideHideRevLinks); | ||
/* פונקציה להוספת כפתור בחירת כל הגרסאות בדף השחזורים */ | |||
function selectAllunDel() { | |||
var undeleteFormButton = document.querySelector( "#undelete button.mw-log-deleterevision-button" ); | |||
if( undeleteFormButton ) { | |||
var unDelAll = document.createElement("input"); | |||
unDelAll.value = "סימון כל הגרסאות"; | |||
unDelAll.type = "button"; | |||
unDelAll.onclick = function() { | |||
for ( var a of document.querySelectorAll("ul.mw-undelete-revlist input[type=checkbox]") ) { | |||
a.checked = true; | |||
} | |||
}; | |||
undeleteFormButton.after(unDelAll); | |||
} | |||
} | |||
$(selectAllunDel); | |||