mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-14 03:11:02 +00:00
Removed experimental setting of the ui-btn-active class on button down. This breaks feedback on checkboxes and radios.
This commit is contained in:
parent
6414e35cee
commit
8dd766dbce
1 changed files with 3 additions and 3 deletions
|
|
@ -85,11 +85,11 @@ var attachEvents = function() {
|
|||
$(".ui-btn:not(.ui-disabled)").live({
|
||||
"vmousedown": function() {
|
||||
var theme = $(this).attr( "data-theme" );
|
||||
$(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme + " " + $.mobile.activeBtnClass);
|
||||
$(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
|
||||
},
|
||||
"vmousecancel vmouseup": function() {
|
||||
var theme = $(this).attr( "data-theme" );
|
||||
$(this).removeClass( "ui-btn-down-" + theme + " " + $.mobile.activeBtnClass ).addClass( "ui-btn-up-" + theme );
|
||||
$(this).removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
|
||||
},
|
||||
"vmouseover focus": function() {
|
||||
var theme = $(this).attr( "data-theme" );
|
||||
|
|
@ -97,7 +97,7 @@ var attachEvents = function() {
|
|||
},
|
||||
"vmouseout blur": function() {
|
||||
var theme = $(this).attr( "data-theme" );
|
||||
$(this).removeClass( "ui-btn-hover-" + theme + " " + $.mobile.activeBtnClass ).addClass( "ui-btn-up-" + theme );
|
||||
$(this).removeClass( "ui-btn-hover-" + theme ).addClass( "ui-btn-up-" + theme );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue