diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-02 09:55:43 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-02 09:55:43 +0200 |
commit | 5dff9d88cb58c9c533a113d6cbde9d5b6acd1c92 (patch) | |
tree | 934bc1dfe5ed6baad55653f9f5e36a6eeb4564dd /apps/files/js | |
parent | 3dec30d0e09128002f24f58b7ea042c42defce31 (diff) | |
download | nextcloud-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.js | 7 |
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); + }); }); } |