moved the active state vclick to navigation

This commit is contained in:
scottjehl 2011-04-07 15:28:52 -04:00
parent 784f5974e5
commit cd0ad522ba
2 changed files with 5 additions and 3 deletions

View file

@ -98,9 +98,6 @@ var attachEvents = function() {
"vmouseout blur": function() {
var theme = $(this).attr( "data-" + $.mobile.ns + "theme" );
$(this).removeClass( "ui-btn-hover-" + theme ).addClass( "ui-btn-up-" + theme );
},
"vclick": function() {
$(this).addClass( $.mobile.activeBtnClass );
}
});

View file

@ -685,6 +685,11 @@
);
event.preventDefault();
});
//add active state on vclick
$( "a" ).live( "vclick", function(){
$(this).closest( ".ui-btn" ).addClass( $.mobile.activeBtnClass );
});
//click routing - direct to HTTP or Ajax, accordingly