summaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-06 22:40:10 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-06 22:40:10 +0200
commit673e0c01a79927359319ff15411a33f460d85ac5 (patch)
tree62883c3cd10979ccb7e8ce0bb288da3e92f59484 /core/js/oc-dialogs.js
parent796e137e82c887da8e67d2ad06b141742f50b98a (diff)
downloadnextcloud-server-673e0c01a79927359319ff15411a33f460d85ac5.tar.gz
nextcloud-server-673e0c01a79927359319ff15411a33f460d85ac5.zip
fix page leaving checks
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r--core/js/oc-dialogs.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index fd77f5998b5..bc460798350 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -262,10 +262,10 @@ var OCdialogs = {
//TODO show skip action for files with same size and mtime in bottom row
};
- var selection = controller.getSelection(data.originalFiles);
- if (selection.defaultAction) {
- controller[selection.defaultAction](data);
- } else {
+ //var selection = controller.getSelection(data.originalFiles);
+ //if (selection.defaultAction) {
+ // controller[selection.defaultAction](data);
+ //} else {
var dialog_name = 'oc-dialog-fileexists-content';
var dialog_id = '#' + dialog_name;
if (this._fileexistsshown) {
@@ -306,6 +306,7 @@ var OCdialogs = {
if ( typeof controller.onCancel !== 'undefined') {
controller.onCancel(data);
}
+ $(dialog_id).ocdialog('close');
$(dialog_id).ocdialog('destroy').remove();
}
},
@@ -382,7 +383,7 @@ var OCdialogs = {
alert(t('core', 'Error loading file exists template'));
});
}
- }
+ //}
},
_getFilePickerTemplate: function() {
var defer = $.Deferred();