mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
javascript MDL-16673 Removed all removeable uses of CFG->javascript
In doing this I was able to eliminate the need for javascript.php files, now removed. I will also be filing several subtasks to clean up the linked to JS files in OUTPUT as well as all instance of the old style of focusing.
This commit is contained in:
parent
e4e7044acd
commit
e11a8328b3
10 changed files with 91 additions and 199 deletions
|
@ -1044,6 +1044,16 @@ function focuscontrol(controlid) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Transfers keyboard focus to an HTML element based on the old style style of focus
|
||||
* This function should be removed as soon as it is no longer used
|
||||
*/
|
||||
function old_onload_focus(parentname, controlname) {
|
||||
if (window[parentname]) {
|
||||
window[parentname][controlname].focus();
|
||||
}
|
||||
}
|
||||
|
||||
function scroll_to_end() {
|
||||
window.scrollTo(0, 5000000);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue