summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-08-29 20:35:56 +0200
committerGitHub <noreply@github.com>2016-08-29 20:35:56 +0200
commit606fd77432feb28b4a9a1ab52885560081c77540 (patch)
tree13934ff114fa666a71d0d6b1e0f6f2cbe5d5509d /apps
parent1f8c3c153c3dc1700853f50dc745d51994761014 (diff)
parent29b45c5c426d390ed2f90720b6c987883708ba2e (diff)
downloadnextcloud-server-606fd77432feb28b4a9a1ab52885560081c77540.tar.gz
nextcloud-server-606fd77432feb28b4a9a1ab52885560081c77540.zip
Merge pull request #1146 from nextcloud/init-filesconfig
Make sure file list files config always exists
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index f191ade240b..e11f828b7c6 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -212,6 +212,10 @@
this._filesConfig = options.config;
} else if (!_.isUndefined(OCA.Files) && !_.isUndefined(OCA.Files.App)) {
this._filesConfig = OCA.Files.App.getFilesConfig();
+ } else {
+ this._filesConfig = new OC.Backbone.Model({
+ 'showhidden': false
+ });
}
if (options.dragOptions) {