mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Fix onFinishOne attribute and its handler
This commit is contained in:
parent
2404ebda6e
commit
d5231d35bc
@ -85,6 +85,12 @@ var et2_file = et2_inputWidget.extend(
|
||||
"default": false,
|
||||
"description": "Style list of files in uploading progress like dropdown list with a total upload progress indicator"
|
||||
},
|
||||
onFinishOne: {
|
||||
"name": "Finish event handler for each one",
|
||||
"type": "any",
|
||||
"default": et2_no_init,
|
||||
"description": "A (js) function called when a file to be uploaded is finished."
|
||||
},
|
||||
},
|
||||
|
||||
asyncOptions: {},
|
||||
@ -275,7 +281,7 @@ var et2_file = et2_inputWidget.extend(
|
||||
if(jQuery.isEmptyObject(value))
|
||||
{
|
||||
this.options.value = {};
|
||||
this.progress.empty();
|
||||
if (this.resumable.progress() == 1) this.progress.empty();
|
||||
|
||||
// Reset the HTML element
|
||||
this.input.wrap('<form>').closest('form').get(0).reset();
|
||||
@ -592,6 +598,9 @@ var et2_file = et2_inputWidget.extend(
|
||||
.css("display", "block")
|
||||
.text(this.egw().lang("Server error"));
|
||||
}
|
||||
var event = jQuery.Event('upload');
|
||||
|
||||
event.data = this;
|
||||
|
||||
// Callback
|
||||
if(this.options.onFinishOne)
|
||||
|
Loading…
Reference in New Issue
Block a user