diff --git a/uhr.js b/uhr.js index 14d8cac..e954fe9 100644 --- a/uhr.js +++ b/uhr.js @@ -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() {