Commit ee1ceba8 authored by 刘丹's avatar 刘丹 Committed by hujun

提交清空form

parent 10b3b2db
......@@ -81,7 +81,7 @@
</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<form class="form-horizontal" id="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label">标题:</label>
<input type="text" value="" name="title" class="form-control btn6" placeholder="用于后台显示的配置标题">
......
......@@ -22,6 +22,7 @@ authRule={
authRule.getList();
});
$ (document).delegate (".edit_add", "click", function () {//新增
document.getElementById("form-horizontal").reset();
authRule.Edid_add();
});
$ (document).delegate (".is_show", "click", function () {//点击禁用
......@@ -65,6 +66,7 @@ authRule={
url: '/index/classList/type/1',//获取后台菜单
type: 'GET',
async: true,
cache:false,
dataType: 'json',
success: function (data) {
var temp=document.getElementById('auth_class_tpl').innerHTML;
......@@ -78,6 +80,7 @@ authRule={
'type': 'GET',
'url' : '/index/updateAuthRule',//获取编辑数据
data: {"id":authRule.house_id},
cache:false,
dataType: "json",
success: function (data) {
$("input[name = id]").val(data.data.id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment