]> git.0d.be Git - panikweb.git/commitdiff
js: add comment about why calling window.onpopstate() is necessary
authorFrédéric Péters <fpeters@0d.be>
Sat, 28 Sep 2013 09:27:02 +0000 (11:27 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sat, 28 Sep 2013 09:27:02 +0000 (11:27 +0200)
panikweb_templates/static/js/specifics.js

index 03fe8943acd7b7cd4dae00e8678b5a18d694ec62..8dbf0b1839717299a5009ae4538ea43d10f250ef 100644 (file)
@@ -55,6 +55,9 @@ $(function() {
                }
                new_content = $($.parseHTML(html)).find('#Changing>*');
                $main.hide().empty().append(new_content).show();
+
+               /* calling onpopstate here is necessary to get urlParams to be
+                * updated */
                window.onpopstate();
 
                new_menu = $($.parseHTML(html)).find('#metaNav>*');