From 031f1648f2a1207d0b88ce3e536b9b5163c7024c Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 27 Jul 2011 23:07:26 +0200 Subject: new ui and clean out mcdropdown --- src/main/webapp/js/jquery-ui.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/main/webapp/js/jquery-ui.js') diff --git a/src/main/webapp/js/jquery-ui.js b/src/main/webapp/js/jquery-ui.js index 6470041..5754d6a 100644 --- a/src/main/webapp/js/jquery-ui.js +++ b/src/main/webapp/js/jquery-ui.js @@ -10512,6 +10512,18 @@ $.widget( "ui.menu", { if ( target.length ) { self.blur( event ); } + }) + .bind( "focus.menu", function( event ) { + if ( self.options.disabled ) { + return; + } + self.focus( event, $( event.target ).children( ".ui-menu-item:first" ) ); + }) + .bind( "blur.menu", function( event ) { + if ( self.options.disabled ) { + return; + } + self.collapseAll( event ); }); this.refresh(); -- cgit v1.1