Skip to content
Snippets Groups Projects
Commit 75e14408 authored by cramakri's avatar cramakri
Browse files

BIS-151 SP-514 : Added support for an oncomplete event to the uploader.js

SVN: 28605
parent 83bcd7e2
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ var Uploader = (function() { ...@@ -27,6 +27,7 @@ var Uploader = (function() {
upload_form: "#upload-form", upload_form: "#upload-form",
file_input_button: "#fileinput-button", file_input_button: "#fileinput-button",
file_list_clear_button: "#filelist-clear-button", file_list_clear_button: "#filelist-clear-button",
oncomplete: function(file) { },
chunk_size: 100*1024, chunk_size: 100*1024,
smart_mode: window.File && window.FileReader && window.XMLHttpRequest smart_mode: window.File && window.FileReader && window.XMLHttpRequest
}; };
...@@ -197,6 +198,7 @@ var Uploader = (function() { ...@@ -197,6 +198,7 @@ var Uploader = (function() {
d.filename + "\">" + d.filename + "</a>"); d.filename + "\">" + d.filename + "</a>");
$("#action-bar-" + d.id).remove(); $("#action-bar-" + d.id).remove();
delete progress[d.id]; delete progress[d.id];
settings.oncomplete(file);
} }
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment