表单可以正常提交

This commit is contained in:
yubao
2018-02-25 23:21:41 +08:00
parent 415faae8d8
commit 0260031ca1
2 changed files with 9 additions and 5 deletions

View File

@@ -24,7 +24,7 @@
//更多其他参数请参考ueditor.config.js中的配置项
});
var leipiFormDesign = {
leipiFormDesign = {
/*执行控件*/
exec: function (method) {
leipiEditor.execCommand(method);
@@ -216,7 +216,7 @@
//异步提交数据
$.ajax({
type: 'POST',
url: '/index.php?s=/index/parse.html',
url: '/Forms/AddOrUpdate',
//dataType : 'json',
data: { 'type': type_value, 'formid': formid, 'parse_form': parse_form },
success: function (data) {
@@ -268,7 +268,11 @@
return false;
}
}
};
};
$("#btnSubmit").click(function() {
leipiFormDesign.fnCheckForm("save");
});
})