diff options
author | Florian Schunk <florian.schunk@rwth-aachen.de> | 2019-01-07 22:07:16 +0100 |
---|---|---|
committer | Florian Schunk <florian.schunk@rwth-aachen.de> | 2019-01-16 22:54:16 +0100 |
commit | 332b4aee9da4ffe6f7f79255ca4ce75b8a283693 (patch) | |
tree | b543244322f8c871f1c673aac456fd37eaddbf3d /core | |
parent | ecb936495f095610298c952c7c555ebb6daf1174 (diff) | |
download | nextcloud-server-332b4aee9da4ffe6f7f79255ca4ce75b8a283693.tar.gz nextcloud-server-332b4aee9da4ffe6f7f79255ca4ce75b8a283693.zip |
fix testing for undefined
Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 9646eb0cc41..3583019ef08 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -215,9 +215,7 @@ var OCdialogs = { this.filepicker.filesClient = (OCA.Sharing && OCA.Sharing.PublicApp && OCA.Sharing.PublicApp.fileList)? OCA.Sharing.PublicApp.fileList.filesClient: OC.Files.getClient(); this.filelist = null; - if (path == undefined) { - path = ''; - } + path = path || ''; $.when(this._getFilePickerTemplate()).then(function($tmpl) { self.filepicker.loading = false; @@ -236,14 +234,9 @@ var OCdialogs = { self.$filePicker = $tmpl.octemplate({ dialog_name: dialogName, title: title, -<<<<<<< HEAD emptytext: emptyText, newtext: newText - }).data('path', '').data('multiselect', multiselect).data('mimetype', mimetypeFilter); -======= - emptytext: emptyText }).data('path', path).data('multiselect', multiselect).data('mimetype', mimetypeFilter); ->>>>>>> copy Dialog starts in current directory if (modal === undefined) { modal = false; |