falsches element zum toggeln gewählt

This commit is contained in:
Manuel Friedli 2013-11-28 09:40:04 +01:00
parent 5223ceb1f6
commit 4f796107bc
1 changed files with 3 additions and 2 deletions

5
uhr.js
View File

@ -171,11 +171,12 @@ Uhr.prototype.initToggleSwitch = function() {
var status = $.cookie('status' + this.id);
if (status == 'on') {
this.start();
toggleSwitch.prop('checked', true);
input.prop('checked', true);
} else {
this.stop();
toggleSwitch.prop('checked', false);
input.prop('checked', false);
}
return toggleSwitch;
}
Uhr.prototype.initLayoutSwitch = function() {