Minor Changes

This commit is contained in:
Brinken
2012-09-02 15:27:09 +02:00
parent 77d0ff7a9f
commit 1d71c3a6d2
3 changed files with 101 additions and 59 deletions

View File

@@ -43,7 +43,7 @@ $(document).ready(function(){
$( '.switch' ).each(function(){
//set Label name to current active state
var labelName = 'label[for="' + $( this ).attr( "name" ) + '"]';
var switchId = $( this ).attr( "name" );
var switchId = $( this ).attr( "name" ) + "_switch";
if ( $( this ).is(':checked') ){
$( labelName ).text( 'Enabled' );
$("#" + switchId ).show();