From 0336d0f7c9019a229d00cd9aaf15dc5e32b21fcc Mon Sep 17 00:00:00 2001 From: Filippo Campi Date: Thu, 25 Oct 2018 23:34:21 +0200 Subject: [PATCH] [doc][fix] updated CHANGES + changed the method to wait for page to load --- CHANGES.rst | 4 ++++ plone/app/discussion/browser/javascripts/moderation.js | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 7220d75..f472b67 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -15,6 +15,10 @@ New features: Bug fixes: +- Changed $(window).load with $(document).ready in moderation.js + because in some version of FF and IE doesn't work. + [eikcihi18] + - Fix location of controlpanel events. [jensens] diff --git a/plone/app/discussion/browser/javascripts/moderation.js b/plone/app/discussion/browser/javascripts/moderation.js index d2a2b9d..17a3179 100644 --- a/plone/app/discussion/browser/javascripts/moderation.js +++ b/plone/app/discussion/browser/javascripts/moderation.js @@ -24,10 +24,9 @@ require([ // jshint ignore:line //#JSCOVERAGE_IF 0 /************************************************************************** - * Window Load Function: Executes when complete page is fully loaded, - * including all frames, + * Document Ready Function: Executes when DOM is ready. **************************************************************************/ - $(window).load(function () { + $(document).ready(function () { /********************************************************************** * Delete a single comment.