summaryrefslogtreecommitdiffstats
path: root/js/public/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/public/app.js')
-rw-r--r--js/public/app.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/js/public/app.js b/js/public/app.js
index f49f2546c..caaf5dc52 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -867,6 +867,16 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
this._$scope.isCompactView = function() {
return _this._compact.isCompact();
};
+ this._$scope.is = {
+ active: 0
+ };
+ this._$scope.toggleOpen = function(id) {
+ if (id === _this._$scope.is.active) {
+ return _this._$scope.is.active = 0;
+ } else {
+ return _this._$scope.is.active = id;
+ }
+ };
}
return ItemController;
@@ -2722,9 +2732,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
var successCallback,
_this = this;
this.deferred = $q.defer();
- this.getActiveFeed(function() {
- return _this.getItems(_this._activeFeed.getType(), _this._activeFeed.getId());
- });
this.getAllFolders();
successCallback = function() {
return _this.deferred.resolve();
@@ -2733,6 +2740,9 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
this.userSettingsRead();
this.userSettingsLanguage();
this.userSettingsIsCompact();
+ this.getActiveFeed(function() {
+ return _this.getItems(_this._activeFeed.getType(), _this._activeFeed.getId());
+ });
return this.deferred.promise;
};