From 31fe89849ed30c9e75a8a9457d3578bbf586b204 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 14 Jan 2015 09:06:32 +0000 Subject: [PATCH] Update file's list after each upload --- filemanager/js/app.js | 11 ++++++++++- filemanager/templates/default/index.xet | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index 1a9cad73eb..5dfd7631ed 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -258,7 +258,16 @@ app.classes.filemanager = AppJS.extend( 'preset[filemode]': _action.id.substr(5) }); }, - + + /** + * Trigger Upload after each file is uploaded + * @param {type} _event + */ + uploadOnOne: function (_event) + { + this.upload(_event,1); + }, + /** * Send names of uploaded files (again) to server, to process them: either copy to vfs or ask overwrite/rename * diff --git a/filemanager/templates/default/index.xet b/filemanager/templates/default/index.xet index 7b8282d254..b78c2ab6a7 100644 --- a/filemanager/templates/default/index.xet +++ b/filemanager/templates/default/index.xet @@ -59,7 +59,7 @@