diff --git a/js/jquery.mobile.navbar.js b/js/jquery.mobile.navbar.js old mode 100755 new mode 100644 index 4ea542cbeac..37f2297bd8f --- a/js/jquery.mobile.navbar.js +++ b/js/jquery.mobile.navbar.js @@ -35,9 +35,11 @@ $.widget( "mobile.navbar", $.mobile.widget, { iconpos: iconpos }); - $navbar.delegate( "a", "vclick", function( event ) { - $navbtns.not( ".ui-state-persist" ).removeClass( $.mobile.activeBtnClass ); - $( this ).addClass( $.mobile.activeBtnClass ); + $navbar.delegate("a", "vclick",function(event){ + if ( !$( this ).hasClass( "ui-disabled" ) ) { + $navbtns.not( ".ui-state-persist" ).removeClass( $.mobile.activeBtnClass ); + $( this ).addClass( $.mobile.activeBtnClass ); + } }); } });