Permalink
Browse files

remove old click handler before replacing.

  • Loading branch information...
1 parent 007bc2c commit 8d4046c5c6ab1ee878fb31ad7a384fe36b48177d @izak izak committed Mar 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 plone/app/toolbar/resources/toolbar_overlays.js
@@ -91,6 +91,8 @@ window.parent.toolbar.el.on('toolbar_loaded',
.attr('title', 'Open here'); // Needs i18n!
$(this).parent().append(viewlink);
} else {
+ // Replace click handler
+ $(this).off('click');
$(this).on('click', function(e){
window.parent.location.href = $(e.target).attr('href');
});

0 comments on commit 8d4046c

Please sign in to comment.