From 4f796107bc09af8ad09fbe5e4c70fd09560bdf30 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Thu, 28 Nov 2013 09:40:04 +0100 Subject: [PATCH] =?UTF-8?q?falsches=20element=20zum=20toggeln=20gew=C3=A4h?= =?UTF-8?q?lt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uhr.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() {