aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2012-03-18 21:18:00 -0500
committerkborchers <kris.borchers@gmail.com>2012-03-18 21:18:00 -0500
commit11b026d59b5d1f6f5cd55570c7148b2a33322c53 (patch)
treec42cd8064313a334533186e02d19bc6ea5357aa8 /ui
parent6de8030f014eaa298543feea15960848d2f0d029 (diff)
downloadjquery-ui-11b026d59b5d1f6f5cd55570c7148b2a33322c53.tar.gz
jquery-ui-11b026d59b5d1f6f5cd55570c7148b2a33322c53.zip
Menu: Better disabled item handling using preventDefault() for the click event on anchors inside of disabled menu items and change the pointer to default
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.menu.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 18f4eb9f8..17177a906 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -59,6 +59,9 @@ $.widget( "ui.menu", {
"mousedown .ui-menu-item > a": function( event ) {
event.preventDefault();
},
+ "click .ui-state-disabled > a": function( event ) {
+ event.preventDefault();
+ },
"click .ui-menu-item:has(a)": function( event ) {
event.stopImmediatePropagation();
//Don't select disabled menu items