summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-08-22 09:45:21 +0200
committerVincent Petry <pvince81@owncloud.com>2016-08-22 09:48:12 +0200
commitc4ba9f2f9780c97c2926204b01bc2ab87ceb67a8 (patch)
treeb49ee1d54e74ea3da1528dcd408268012c7bab38 /apps
parent20aa7ee2804591de14b6464d82c98325dd260ed6 (diff)
downloadnextcloud-server-c4ba9f2f9780c97c2926204b01bc2ab87ceb67a8.tar.gz
nextcloud-server-c4ba9f2f9780c97c2926204b01bc2ab87ceb67a8.zip
Make sure file list files config always exists
Initialize files config with defaults in case none was passed
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 fbbf2d3e7ec..f7d16e960c9 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -208,6 +208,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) {