Don't route clicks on the dropdown menus
authorJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 7 Oct 2013 23:35:39 +0000 (16:35 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Sun, 13 Oct 2013 21:46:09 +0000 (14:46 -0700)
app/assets/javascripts/index.js

index db858c7c16bcea52ef7063a108b8e5c75dc9a233..59335ff849e60d3d08e2c93d14f967558bd3b4e6 100644 (file)
@@ -283,6 +283,7 @@ $(document).ready(function () {
   });
 
   $(document).on("click", "a", function(e) {
+    if (e.isPropagationStopped()) return;
     if (router(this.pathname + this.search + this.hash)) e.preventDefault();
   });