From: Benoît Pin Date: Tue, 14 Apr 2015 07:47:07 +0000 (+0200) Subject: Ménage, lint. X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/4bfd1c451269a42aca30892f9c85b7a0fb255f87?ds=inline;hp=ad7b6a9c7ed52fea826a29f17854dce6d9a017ce 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