Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent default for layout links

  • Loading branch information...
commit 93a3d84e68bc29fd24fe34bec2a441a6bb3fe6dd 1 parent 24cf3ff
Nils Hörrmann nilshoerrmann authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 symphony.stage.js
10 symphony.stage.js
View
@@ -152,6 +152,11 @@
object.find('ul:first').after(queue);
}
+ // Prevent clicks on layout anchors
+ object.find('a.file, a.image').click(function(event) {
+ event.preventDefault();
+ });
+
// Add destructors
object.stage.addDestructor(items);
@@ -223,6 +228,11 @@
});
+ // Prevent clicks on layout anchors
+ element.find('a.file, a.image').click(function(event) {
+ event.preventDefault();
+ });
+
});
// Slide queue
Please sign in to comment.
Something went wrong with that request. Please try again.