]> git.0d.be Git - panikdb.git/commitdiff
wiki: only register popstate once
authorFrédéric Péters <fpeters@0d.be>
Tue, 23 Jun 2020 17:08:03 +0000 (19:08 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 23 Jun 2020 17:08:03 +0000 (19:08 +0200)
panikdb/static/js/combo.wiki.js

index 21cfdc2a55f3e8f1123624ec4389fd7343e177b8..a38dcf6ab612e8a752e273e0e9d7bcffb6e1d2cc 100644 (file)
@@ -510,7 +510,7 @@ function init_page() {
     });
   }
 
-  $(window).on('popstate', function(e) {
+  $(window).off('popstate').on('popstate', function(e) {
     load_page(location.href, false);
   });