Checkbox now animate with style

This commit is contained in:
Brinken
2012-09-02 19:46:33 +02:00
parent 1d71c3a6d2
commit 5f365c44a3
4 changed files with 89 additions and 81 deletions

View File

@@ -46,12 +46,12 @@ $(document).ready(function(){
var switchId = $( this ).attr( "name" ) + "_switch";
if ( $( this ).is(':checked') ){
$( labelName ).text( 'Enabled' );
$("#" + switchId ).show();
$("#" + switchId ).slideDown();
enit();
}
else {
$( labelName ).text( 'Disabled' );
$("#" + switchId ).hide();
$("#" + switchId ).slideUp();
enit();
}
//Change label
@@ -59,12 +59,12 @@ $(document).ready(function(){
if ( $( this ).is( ':checked' ) ){
$( labelName ).text( 'Enabled' );
$("#" + switchId ).show();
$("#" + switchId ).slideDown();
enit();
}
else{
$( labelName ).text( 'Disabled' );
$("#" + switchId ).hide();
$("#" + switchId ).slideUp();
enit();
}
});