Minor - Replace use of deprecated window.load

pull/2473/head
jmontoyaa 8 years ago
parent 5f6e3ff4ae
commit e58ef14d1b
  1. 2
      main/create_course/add_course.php
  2. 2
      main/document/create_document.php
  3. 2
      main/lp/lp_controller.php
  4. 2
      main/template/default/glossary/glossary_auto.js.tpl
  5. 2
      main/template/default/layout/header.js.tpl
  6. 2
      src/Chamilo/ThemeBundle/Resources/views/Layout/header.js.twig

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

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

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

@ -1,6 +1,6 @@
{% if add_ready %}
$(document).ready(function() {
$(window).load(function () {
$(window).on("load", function () {
{% endif %}
var my_text = $(".glossary-content").html();
var ajaxRequestUrl = "{{ _p.web }}main/glossary/glossary_ajax_request.php?{{ _p.web_cid_query }}";

@ -105,7 +105,7 @@ $(document).ready(function() {
// Removes the yellow input in Chrome
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
$(window).load(function(){
$(window).on("load", function () {
$('input:-webkit-autofill').each(function(){
var text = $(this).val();
var name = $(this).attr('name');

@ -116,7 +116,7 @@ $(document).ready(function() {
// Removes the yellow input in Chrome
if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
$(window).load(function(){
$(window).on("load", function () {
$('input:-webkit-autofill').each(function(){
var text = $(this).val();
var name = $(this).attr('name');

Loading…
Cancel
Save