UI: revert changes from 3f630f9 that broke links in PopupMenus

This commit is contained in:
Carl Eberhard
2013-11-25 14:59:51 -05:00
parent ba57dd7adc
commit 82e3374bfd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ var PopupMenu = Backbone.View.extend({
// if the option has 'func', call that function when the anchor is clicked
if( option.func ){
$( this ).children( 'a.popupmenu-option' ).mousedown( function( event ){
$( this ).children( 'a.popupmenu-option' ).click( function( event ){
option.func.call( menu, event, option );
// bubble up so that an option click will call the close behavior
//return false;
@@ -292,7 +292,7 @@ var PopupMenu = Backbone.View.extend({
// function to close popup and unbind itself
var menu = this;
var closePopupWhenClicked = function( $elClicked ){
$elClicked.one( "mousedown.close_popup", function(){
$elClicked.one( "click.close_popup", function(){
menu.remove();
});
};
File diff suppressed because one or more lines are too long