summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-10-02 09:55:43 +0200
committerVincent Petry <pvince81@owncloud.com>2015-10-02 09:55:43 +0200
commit5dff9d88cb58c9c533a113d6cbde9d5b6acd1c92 (patch)
tree934bc1dfe5ed6baad55653f9f5e36a6eeb4564dd /apps/files/js
parent3dec30d0e09128002f24f58b7ea042c42defce31 (diff)
downloadnextcloud-server-5dff9d88cb58c9c533a113d6cbde9d5b6acd1c92.tar.gz
nextcloud-server-5dff9d88cb58c9c533a113d6cbde9d5b6acd1c92.zip
Make sure the conflict dialog is loaded before adding conflicts
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/file-upload.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 03330ad7c5d..8bae8567a05 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -201,8 +201,11 @@ OC.Upload = {
return true;
});
if (conflicts.length) {
- _.each(conflicts, function(conflictData) {
- OC.dialogs.fileexists(conflictData[1], conflictData[0], conflictData[1].files[0], OC.Upload);
+ // wait for template loading
+ OC.dialogs.fileexists(null, null, null, OC.Upload).done(function() {
+ _.each(conflicts, function(conflictData) {
+ OC.dialogs.fileexists(conflictData[1], conflictData[0], conflictData[1].files[0], OC.Upload);
+ });
});
}