From: Benoît Pin Date: Tue, 14 Apr 2015 07:47:07 +0000 (+0200) Subject: Ménage, lint. X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/commitdiff_plain/4bfd1c451269a42aca30892f9c85b7a0fb255f87 Ménage, lint. --- diff --git a/Products/Plinn/skins/ajax_scripts/root_handlers.js b/Products/Plinn/skins/ajax_scripts/root_handlers.js index 47ac1d7..26c3769 100644 --- a/Products/Plinn/skins/ajax_scripts/root_handlers.js +++ b/Products/Plinn/skins/ajax_scripts/root_handlers.js @@ -75,7 +75,7 @@ AjaxLinkHandler.prototype.loadUrl = function(url, noPush) { return; } if (!noPush) - history.pushState(rawUrl, '', rawUrl) + history.pushState(rawUrl, '', rawUrl); }; function ajaxSubmitFormHandler(evt) { @@ -102,6 +102,5 @@ function _addRootHandlers() { } } -registerStartupFunction(_addRootHandlers); - +addListener(window, 'load', _addRootHandlers); })(); \ No newline at end of file