init storage
This commit is contained in:
parent
62e1dbb642
commit
e307d1e87d
|
@ -162,6 +162,10 @@
|
|||
};
|
||||
|
||||
$scope.collapseAll = function () {
|
||||
if (!$localStorage.collapsedFolders) {
|
||||
$localStorage.collapsedFolders = {};
|
||||
}
|
||||
|
||||
$localStorage.collapsedFolders.none = true;
|
||||
$localStorage.collapsedFolders.favorite = true;
|
||||
|
||||
|
@ -178,6 +182,10 @@
|
|||
};
|
||||
|
||||
$scope.expandAll = function () {
|
||||
if (!$localStorage.collapsedFolders) {
|
||||
$localStorage.collapsedFolders = {};
|
||||
}
|
||||
|
||||
delete $localStorage.collapsedFolders.none;
|
||||
delete $localStorage.collapsedFolders.favorite;
|
||||
|
||||
|
|
Loading…
Reference in New Issue