统一表单名称

This commit is contained in:
shuzheng 2017-02-19 17:12:19 +08:00
parent c607073af9
commit b33a8a0d8b
1 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<div id="createDialog" class="crudDialog">
<form id="createForm" method="post">
<div id="updateDialog" class="crudDialog">
<form id="updateForm" method="post">
<div class="form-group">
<label for="icon">图标</label>
<input id="icon" type="text" class="form-control" name="icon" maxlength="20" value="${system.icon}">
@ -47,7 +47,7 @@ function createSubmit() {
$.ajax({
type: 'post',
url: '${basePath}/manage/system/update/${system.systemId}',
data: $('#createForm').serialize(),
data: $('#updateForm').serialize(),
beforeSend: function() {
if ($('#title').val() == '') {
$('#title').focus();