mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-02 05:50:23 +00:00
moved the active state vclick to navigation
This commit is contained in:
parent
784f5974e5
commit
cd0ad522ba
2 changed files with 5 additions and 3 deletions
|
|
@ -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 );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue