refactor code of upload files function
This commit is contained in:
parent
dfcb67d80e
commit
c8a7ac6d62
|
@ -17,26 +17,8 @@ $("#pluginFinish").click(function(e) {
|
|||
plugin.usePluginContainerInit(container.usePluginContainer);
|
||||
plugin.usePluginParamInfosContainerInit(item);
|
||||
$("#myModal_Plugin").modal('hide');
|
||||
// $("input[type=file]").change(function(event) {
|
||||
// fileChange(event);
|
||||
// });
|
||||
});
|
||||
|
||||
//function fileChange(event) {
|
||||
// $.each(event.target.files, function(index, file) {
|
||||
// $.each(event.target.files, function(index, file) {
|
||||
// var reader = new FileReader();
|
||||
// reader.onload = function(event) {
|
||||
// object = new Object();
|
||||
// object.filename = file.name;
|
||||
// object.data = event.target.result;
|
||||
// files.push(object);
|
||||
// };
|
||||
// reader.readAsDataURL(file);
|
||||
// });
|
||||
// });
|
||||
//}
|
||||
|
||||
function pluginEditorInit() {
|
||||
plugin.pluginListContainerInit(container.pluginListContainer);
|
||||
}
|
||||
|
|
|
@ -167,7 +167,7 @@ function submitScriptByAjax(scriptModel){
|
|||
processData:false,
|
||||
data : formData,
|
||||
success : function(data) {
|
||||
alert(data);
|
||||
alert("upload success");
|
||||
window.location.replace("script.jsp");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue