mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 01:39:29 +01:00
Checkbox now animate with style
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user