固定按钮位置(提交/关闭)
This commit is contained in:
@@ -35,12 +35,6 @@
|
||||
<div id="deptTrees" class="ztree"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-control-static col-sm-offset-9">
|
||||
<button type="submit" class="btn btn-primary">提交</button>
|
||||
<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
@@ -59,11 +53,11 @@
|
||||
$("#dataScope").change();
|
||||
});
|
||||
|
||||
$("#form-role-edit").validate({
|
||||
submitHandler:function(form){
|
||||
edit();
|
||||
}
|
||||
});
|
||||
function submitHandler() {
|
||||
if ($.validate.form("#form-role-edit")) {
|
||||
edit();
|
||||
}
|
||||
}
|
||||
|
||||
function edit() {
|
||||
var roleId = $("input[name='roleId']").val();
|
||||
|
Reference in New Issue
Block a user