summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-11 15:36:37 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-11 15:36:37 +0100
commit300f5a2754f2c71fe5713af24ed47152fde67495 (patch)
tree6e8a793260c585665998825000d710e86d8dd720
parentfef624f0c4becc126a8e2d576cd1a8fc3c80cea0 (diff)
hide settings on focus lost
-rw-r--r--coffee/controllers/settingscontroller.coffee3
-rw-r--r--js/app.js3
2 files changed, 2 insertions, 4 deletions
diff --git a/coffee/controllers/settingscontroller.coffee b/coffee/controllers/settingscontroller.coffee
index ef862b77e..712d0e9ff 100644
--- a/coffee/controllers/settingscontroller.coffee
+++ b/coffee/controllers/settingscontroller.coffee
@@ -30,8 +30,7 @@ angular.module('News').factory '_SettingsController', ['Controller',
@parseOPMLStructure(structure)
@$scope.$on 'hidesettings', =>
- @add = false
- @settings = false
+ @$scope.showSettings = false
# recursively create folders
diff --git a/js/app.js b/js/app.js
index 84d15f427..3215c46ac 100644
--- a/js/app.js
+++ b/js/app.js
@@ -2150,8 +2150,7 @@
return _this.parseOPMLStructure(structure);
});
this.$scope.$on('hidesettings', function() {
- _this.add = false;
- return _this.settings = false;
+ return _this.$scope.showSettings = false;
});
}