summaryrefslogtreecommitdiffstats
path: root/js/app/services/persistence.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/app/services/persistence.coffee')
-rw-r--r--js/app/services/persistence.coffee21
1 files changed, 14 insertions, 7 deletions
diff --git a/js/app/services/persistence.coffee b/js/app/services/persistence.coffee
index 341cf66f6..771f6a5fb 100644
--- a/js/app/services/persistence.coffee
+++ b/js/app/services/persistence.coffee
@@ -238,16 +238,23 @@ $rootScope) ->
###
FOLDER CONTROLLER
###
- getAllFolders: (onSuccess) ->
+ getAllFolders: (onSuccess, showLoading=true) ->
onSuccess or= ->
+
# loading sign handling
- @_feedLoading.increase()
- successCallbackWrapper = (data) =>
- onSuccess()
- @_feedLoading.decrease()
- failureCallbackWrapper = (data) =>
- @_feedLoading.decrease()
+ if showLoading
+ @_feedLoading.increase()
+ successCallbackWrapper = (data) =>
+ onSuccess()
+ @_feedLoading.decrease()
+ failureCallbackWrapper = (data) =>
+ @_feedLoading.decrease()
+ else
+ successCallbackWrapper = (data) =>
+ onSuccess()
+ failureCallbackWrapper = (data) =>
+
params =
onSuccess: successCallbackWrapper