Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Added a live handler to kill clicks on elements with class ui-disabled.
Browse files Browse the repository at this point in the history
Fixes #3558
  • Loading branch information
gseguin committed Jun 20, 2012
1 parent a054b5e commit 8c5b9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/jquery.mobile.init.js
Expand Up @@ -5,7 +5,7 @@


define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery.mobile.navigation",
"./jquery.mobile.navigation.pushstate", "./widgets/loader", "depend!./jquery.hashchange[jquery]" ], function( $ ) {
"./jquery.mobile.navigation.pushstate", "./widgets/loader", "./jquery.mobile.vmouse", "depend!./jquery.hashchange[jquery]" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $, window, undefined ) {
var $html = $( "html" ),
Expand Down Expand Up @@ -127,6 +127,8 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery
// window load event
// hide iOS browser chrome on load
$window.load( $.mobile.silentScroll );

$( document ).delegate( ".ui-disabled", "vclick", function () { return false; });
});
}( jQuery, this ));
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
Expand Down

0 comments on commit 8c5b9a7

Please sign in to comment.