X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=frontend%2Fjs%2Fapp.js;h=4cb57e3b1b35163d1c72c04cd5e07e78d08d75ff;hb=35355283872739fb9bd150cf42a40a1a23b1674d;hp=92dc1defd6b804183a2140583fe6a0ac77140e0c;hpb=25c2c5dea457b206c26a9f746210016773a919b3;p=perso%2FImmae%2FProjets%2FNodejs%2FSurfer.git diff --git a/frontend/js/app.js b/frontend/js/app.js index 92dc1de..4cb57e3 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -136,7 +136,7 @@ function uploadFiles(files) { app.uploadStatus.percentDone = 0; asyncForEach(files, function (file, callback) { - var path = encode(sanitize(app.path + '/' + file.name)); + var path = encode(sanitize(app.path + '/' + (file.webkitRelativePath || file.name))); var formData = new FormData(); formData.append('file', file); @@ -275,9 +275,7 @@ var app = new Vue({ refresh(); }); - }).catch(function () { - console.log('delete error:', arguments); - }); + }).catch(function () {}); }, onRename: function (entry) { var that = this; @@ -294,9 +292,7 @@ var app = new Vue({ refresh(); }); - }).catch(function (error) { - that.$message.error(error.message); - }); + }).catch(function () {}); }, onNewFolder: function () { var that = this; @@ -314,9 +310,7 @@ var app = new Vue({ refresh(); }); - }).catch(function (error) { - that.$message.error(error.message); - }); + }).catch(function () {}); }, prettyDate: function (row, column, cellValue, index) { var date = new Date(cellValue),