Minor - use $(window).on("load", instead of window.load to use jquery3

pull/2487/head
Julio 7 years ago
parent 808ac654fc
commit f2d979fc92
  1. 2
      main/create_course/add_course.php
  2. 2
      main/document/create_document.php

@ -49,7 +49,7 @@ $htmlHeadXtra[] = '<script>
function setFocus(){
$("#title").focus();
}
$(window).load(function () {
$(window).on("load", function (e) {
setFocus();
});
</script>';

@ -48,7 +48,7 @@ function setFocus() {
$("#document_title").focus();
}
$(window).load(function () {
$(window).on("load", function (e) {
setFocus();
});

Loading…
Cancel
Save