Permalink
Browse files

Prevent default for layout links

  • Loading branch information...
1 parent 24cf3ff commit 93a3d84e68bc29fd24fe34bec2a441a6bb3fe6dd @nilshoerrmann nilshoerrmann committed Mar 15, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 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

0 comments on commit 93a3d84

Please sign in to comment.