From: Salvatore Iovene Date: Wed, 30 Jan 2013 05:28:29 +0000 (+0200) Subject: (core) Fixes logic for setting night mode. X-Git-Tag: 0.1~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b523aa8f288f4a948b483ee082928d4ca894af9f;p=profile%2Fivi%2Fcowhide.git (core) Fixes logic for setting night mode. --- diff --git a/src/javascripts/cowhide-core.js b/src/javascripts/cowhide-core.js index d5e0e9c..f1a1c35 100644 --- a/src/javascripts/cowhide-core.js +++ b/src/javascripts/cowhide-core.js @@ -109,8 +109,7 @@ if (this.nightMode == value) return; - this.nightMode = value; - this.setTheme(this.currentTheme, this.nightMode); + this.setTheme(this.currentTheme, !this.nightMode); }, toggleNightMode: function() {