This is an automated email from the ASF dual-hosted git repository.

dill0wn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit d5180e78b7cd4b9608f57c092f370c7c6f0b05ed
Author: Guillermo Cruz <[email protected]>
AuthorDate: Fri Aug 19 09:55:41 2022 -0600

    [#8453] updated .load -> .on('load') on a couple of places
---
 Allura/allura/lib/widgets/resources/js/sf_markitup.js | 2 +-
 ForgeTracker/forgetracker/widgets/ticket_form.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/lib/widgets/resources/js/sf_markitup.js 
b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
index 9e8da5e76..d876ff7a2 100644
--- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js
+++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
@@ -19,7 +19,7 @@
 
 /*global EasyMDE, _replaceSelection, Memorable */
 window.CodeMirror = EasyMDE.CodeMirror; // 
https://github.com/Ionaru/easy-markdown-editor/pull/263
-$(window).load(function() {
+$(window).on('load', function() {
     if(!window.markdown_init){
         window.markdown_init = true;
         $('div.markdown_edit').each(function(){
diff --git a/ForgeTracker/forgetracker/widgets/ticket_form.py 
b/ForgeTracker/forgetracker/widgets/ticket_form.py
index 86398e525..1781eb804 100644
--- a/ForgeTracker/forgetracker/widgets/ticket_form.py
+++ b/ForgeTracker/forgetracker/widgets/ticket_form.py
@@ -157,7 +157,7 @@ class TicketForm(GenericTicketForm):
         yield ew.JSScript('''
         // Sometimes IE11 is not firing jQuery's ready callbacks like
         // "$(function(){...})" or "$(document).ready(function(){...});"
-        $(window).load(function(){
+        $(window).on('load', function(){
             $('form').submit(function() {
                 $('input[type=submit]', this).prop('disabled', true);
             });

Reply via email to