diff --git a/OpenAuth.Mvc/Views/Forms/builder.cshtml b/OpenAuth.Mvc/Views/Forms/builder.cshtml index 0a4117ba..e6eea4a8 100644 --- a/OpenAuth.Mvc/Views/Forms/builder.cshtml +++ b/OpenAuth.Mvc/Views/Forms/builder.cshtml @@ -4,7 +4,7 @@ } -
- + diff --git a/OpenAuth.Mvc/userJs/formBuilder.js b/OpenAuth.Mvc/userJs/formBuilder.js index ef157401..10e0ddc0 100644 --- a/OpenAuth.Mvc/userJs/formBuilder.js +++ b/OpenAuth.Mvc/userJs/formBuilder.js @@ -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"); + }); })