update scripEditor.js

This commit is contained in:
daisyonly 2014-09-04 15:32:36 +08:00
parent 786374fa68
commit ef8a7a9a2e
1 changed files with 4 additions and 3 deletions

View File

@ -34,12 +34,13 @@ $(function() {
$("#submitScript").click(function() {
var plugins = usePlugin.getPlugins();
var formData = new FormData();
var plugins = usePlugin.getPlugins(formData);
var pages = usePlugin.getPages();
if(checkPluginsInput(plugins) && checkPagesInput(pages))
updateScript(scriptId,pages,plugins);
updateScript(scriptId,pages,plugins,formData);
else
information("必填的参数没有填写完整,请补充完整后提交");
information("Please complete the required parameters.");
});
});