Explorar o código

저장 처리 로직 수정

gagamel %!s(int64=4) %!d(string=hai) anos
pai
achega
25f82cd233
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  1. 9 3
      src/main/webapp/WEB-INF/views/system/MenuForm.html

+ 9 - 3
src/main/webapp/WEB-INF/views/system/MenuForm.html

@@ -101,7 +101,7 @@
 								<tr>
 									<th>메뉴구분<i class="required" title="필수" aria-hidden="true"></i></th>
 									<td>
-										<label class="rdoBtn"><input type="radio" name="menuGb" value="M"/>메뉴</label>
+										<label class="rdoBtn"><input type="radio" name="menuGb" value="M" checked="checked"/>메뉴</label>
 										<label class="rdoBtn"><input type="radio" name="menuGb" value="P"/>프로그램</label>
 									</td>
 									<th>상위메뉴</th>
@@ -388,7 +388,7 @@
 		$(formId + ' input[name=roleCds]').val($(formId + ' select[name=roleCd]').val());
 		
 		if ($(formId + " input:radio[name=menuGb]").eq(1).is(':checked')) {
-			if (gagajf.isNull($(formId + 'input[name=menuUrl]').val())) {
+			if (gagajf.isNull($(formId + ' input[name=menuUrl]').val())) {
 				mcxDialog.alertC('메뉴URL을 입력해 주세요.', {
 					sureBtnText: "확인",
 					sureBtnClick: function() {
@@ -399,7 +399,13 @@
 			}
 		}
 		
-		gagajf.ajaxFormSubmit($(formId).prop('action'), formId, fnSaveCallback);
+		mcxDialog.confirm("저장하시겠습니까?", {
+			cancelBtnText: "취소",
+			sureBtnText: "확인",
+			sureBtnClick: function() {
+				gagajf.ajaxFormSubmit($(formId).prop('action'), formId, fnSaveCallback);
+			}
+		});
 	}
 	
 	// 등록/수정 처리 후 콜백함수