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.