Removed experimental setting of the ui-btn-active class on button down. This breaks feedback on checkboxes and radios.

This commit is contained in:
Kin Blas 2011-03-09 14:13:26 -08:00
parent 6414e35cee
commit 8dd766dbce

View file

@ -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 );
}
});