(core) Fixes logic for setting night mode.
authorSalvatore Iovene <salvatore@iovene.com>
Wed, 30 Jan 2013 05:28:29 +0000 (07:28 +0200)
committerSalvatore Iovene <salvatore@iovene.com>
Wed, 30 Jan 2013 05:28:29 +0000 (07:28 +0200)
src/javascripts/cowhide-core.js

index d5e0e9c..f1a1c35 100644 (file)
           if (this.nightMode == value)
             return;
 
-          this.nightMode = value;
-          this.setTheme(this.currentTheme, this.nightMode);
+          this.setTheme(this.currentTheme, !this.nightMode);
         },
 
         toggleNightMode: function() {