Content deleted Content added
No edit summary |
No edit summary |
||
Line 10:
var txt = document.editform.wpTextbox1.value;
var sortkey = '';
// Save the position of the editbox scrollbar
var scrollPosition = document.editform.wpTextbox1.scrollTop;
// Create an array of all category links
if (txt.match(/\{\{\s*defaultsort/i)) {
Line 47 ⟶ 49:
}
document.editform.wpTextbox1.value=txt;
// Restore scroll position
document.editform.wpTextbox1.scrollTop = scrollPosition;
}
|