From f2d979fc927b4c00c5d2b1c20f59e58ddf914864 Mon Sep 17 00:00:00 2001 From: Julio Date: Thu, 11 Jan 2018 02:00:25 +0100 Subject: [PATCH] Minor - use $(window).on("load", instead of window.load to use jquery3 --- main/create_course/add_course.php | 2 +- main/document/create_document.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/create_course/add_course.php b/main/create_course/add_course.php index 78ff0a3bfa..d139e49d32 100755 --- a/main/create_course/add_course.php +++ b/main/create_course/add_course.php @@ -49,7 +49,7 @@ $htmlHeadXtra[] = ''; diff --git a/main/document/create_document.php b/main/document/create_document.php index 325e70cbb9..ff2d3bdb34 100755 --- a/main/document/create_document.php +++ b/main/document/create_document.php @@ -48,7 +48,7 @@ function setFocus() { $("#document_title").focus(); } -$(window).load(function () { +$(window).on("load", function (e) { setFocus(); });