summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorFlorian Schunk <florian.schunk@rwth-aachen.de>2019-01-07 22:07:16 +0100
committerFlorian Schunk <florian.schunk@rwth-aachen.de>2019-01-16 22:54:16 +0100
commit332b4aee9da4ffe6f7f79255ca4ce75b8a283693 (patch)
treeb543244322f8c871f1c673aac456fd37eaddbf3d /apps/files
parentecb936495f095610298c952c7c555ebb6daf1174 (diff)
downloadnextcloud-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 'apps/files')
-rw-r--r--apps/files/js/fileactions.js2
-rw-r--r--apps/files/js/filelist.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 05efa1f36e9..ef29551c591 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -649,7 +649,7 @@
actions = OC.dialogs.FILEPICKER_TYPE_COPY_MOVE;
}
var dialogDir = context.dir;
- if (context.fileList.dirInfo.dirLastCopiedTo != undefined) {
+ if (typeof context.fileList.dirInfo.dirLastCopiedTo !== 'undefined') {
dialogDir = context.fileList.dirInfo.dirLastCopiedTo;
}
OC.dialogs.filepicker(t('files', 'Choose target folder'), function(targetPath, type) {
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 7f0d1ea1a94..29c5a49131d 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -919,7 +919,7 @@
var actions = this.isSelectedMovable() ? OC.dialogs.FILEPICKER_TYPE_COPY_MOVE : OC.dialogs.FILEPICKER_TYPE_COPY;
var dialogDir = self.getCurrentDirectory();
- if (self.dirInfo.dirLastCopiedTo != undefined) {
+ if (typeof self.dirInfo.dirLastCopiedTo !== 'undefined') {
dialogDir = self.dirInfo.dirLastCopiedTo;
}
OC.dialogs.filepicker(t('files', 'Choose target folder'), function(targetPath, type) {