Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-08-22 10:45:21 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-08-29 15:44:25 +0300
commit29b45c5c426d390ed2f90720b6c987883708ba2e (patch)
tree5071faea3a2a40806405acb010c35a6c25bd1971 /apps
parent3647fbe7cd86e743b059889d69b03fcf8207780f (diff)
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 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) {