]> granicus.if.org Git - transmission/commitdiff
(trunk web) prevent menu event bubble up
authorKevin Glowacz <kevin@glowacz.info>
Sat, 23 May 2009 02:56:55 +0000 (02:56 +0000)
committerKevin Glowacz <kevin@glowacz.info>
Sat, 23 May 2009 02:56:55 +0000 (02:56 +0000)
web/javascript/transmission.js

index f04fd6f6b4c04a58387f817851e64379e6244722..b234f6355637c83ba807e5c3aac41d4c3f19e2d4 100644 (file)
@@ -262,7 +262,7 @@ Transmission.prototype =
                $('#settings_menu').transMenu({
                        selected_char: '&#x2714;',
                        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 )