Update file's list after each upload

This commit is contained in:
Hadi Nategh 2015-01-14 09:06:32 +00:00
parent d5231d35bc
commit 31fe89849e
2 changed files with 11 additions and 2 deletions

View File

@ -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
*

View File

@ -59,7 +59,7 @@
<buttononly label="Paste link" id="button[linkpaste]" onclick="app.filemanager.paste('linkpaste');" options="linkpaste,linkpaste_disabled"/>
<buttononly label="Mail paste" id="button[mailpaste]" onclick="app.filemanager.paste('mailpaste');" options="mailpaste,mailpaste_disabled"/>
<button label="File a file" onclick="window.open(egw::link('/index.php','menuaction=stylite.stylite_filemanager.upload'),'_blank','dependent=yes,width=550,height=350,scrollbars=yes,status=yes'); return false;" image="upload"/>
<file statustext="Select file to upload in current directory" id="upload" progress_dropdownlist = "true" drop_target ="divAppbox" multiple="true" onFinish="app.filemanager.upload"/>
<file statustext="Select file to upload in current directory" id="upload" progress_dropdownlist = "true" drop_target ="divAppbox" multiple="true" onFinishOne="app.filemanager.uploadOnOne"/>
</hbox>
</hbox>
</template>