refactor code of upload files function

This commit is contained in:
zhengyingying 2014-04-28 17:20:12 +08:00
parent dfcb67d80e
commit c8a7ac6d62
2 changed files with 1 additions and 19 deletions

View File

@ -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);
}

View File

@ -167,7 +167,7 @@ function submitScriptByAjax(scriptModel){
processData:false,
data : formData,
success : function(data) {
alert(data);
alert("upload success");
window.location.replace("script.jsp");
}
});