(trunk web) prevent menu event bubble up

This commit is contained in:
Kevin Glowacz 2009-05-23 02:56:55 +00:00
parent cd7b3298a3
commit c96212b18c
1 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,7 @@ Transmission.prototype =
$('#settings_menu').transMenu({
selected_char: '✔',
direction: 'up',
onClick: function(e){ tr.processSettingsMenuEvent(e); }
onClick: function(e){ return tr.processSettingsMenuEvent(e); }
});
$('#unlimited_download_rate').selectMenuItem();
@ -842,6 +842,8 @@ Transmission.prototype =
}
break;
}
$('#settings_menu').trigger('closemenu');
return false; // to prevent the event from bubbling up
},
setLastTorrentClicked: function( torrent )