Close context menu after clicking action.
authorJack Allnutt <jack@allnutt.eu>
Tue, 16 Jul 2013 16:17:17 +0000 (17:17 +0100)
committerJack Allnutt <jack@allnutt.eu>
Tue, 16 Jul 2013 16:17:17 +0000 (17:17 +0100)
Fixes #332

client/assets/src/views/menubox.js

index 7dd9b0a445fcfa496dd7ad34266b4a2884c118d3..fdb568c8dc4e60815c9461618d43e9ab9dfd3380 100644 (file)
@@ -1,6 +1,6 @@
 _kiwi.view.MenuBox = Backbone.View.extend({
     events: {
-        'click .ui_menu_foot .close': 'dispose'
+        'click .ui_menu_foot .close, a': 'dispose'
     },
 
     initialize: function(title) {
@@ -104,4 +104,4 @@ _kiwi.view.MenuBox = Backbone.View.extend({
             $(document).on('click', that._close_proxy);
         }, 0);
     }
-});
\ No newline at end of file
+});