API 관리
- 표준메시지 내용이 화면 규격을 지키도록 줄임말 처리 - 복제시 complete 후 버튼 disable 원복 공통 - 중요 메뉴에 대해 삭제시 confirm 메시지 출력
This commit is contained in:
@@ -193,6 +193,10 @@ var url_view = '<c:url value="/onl/admin/common/propertyMan.view" />';
|
||||
});
|
||||
});
|
||||
$("#btn_delete").click(function() {
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return;
|
||||
}
|
||||
|
||||
var postData = $('#ajaxForm').serializeArray();
|
||||
postData.push({
|
||||
name : "cmd",
|
||||
|
||||
@@ -313,6 +313,10 @@
|
||||
$('#btn_import').click(onclickExcelImport);
|
||||
|
||||
$("#btn_delete").click(function () {
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return;
|
||||
}
|
||||
|
||||
var id = "grid";
|
||||
var delArr = new Array();
|
||||
var ids = $("#grid").jqGrid('getDataIDs');
|
||||
|
||||
@@ -238,6 +238,10 @@ $(document).ready(function() {
|
||||
$('#btn_clone').click(onclickBtnClone);
|
||||
|
||||
$("#btn_delete").click(function(){
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return;
|
||||
}
|
||||
|
||||
var id = "grid";
|
||||
var cnvsnNameArr = new Array();
|
||||
var eaiSvcNameArr = new Array();
|
||||
|
||||
@@ -1065,6 +1065,10 @@
|
||||
});
|
||||
|
||||
$("#btn_delete").click(function(){
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return;
|
||||
}
|
||||
|
||||
var postData = [];
|
||||
const cnvsnName = $("select[name=transformForEaiSvcNameCombo]").val();
|
||||
const cnvsnType = cnvsnName.slice(-3);
|
||||
|
||||
@@ -154,6 +154,10 @@ $(document).ready(function() {
|
||||
});
|
||||
});
|
||||
$("#btn_delete").click(function(){
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return;
|
||||
}
|
||||
|
||||
var disabled = $('#ajaxForm').find(':input:disabled').removeAttr('disabled');
|
||||
var postData = $('#ajaxForm').serializeArray();
|
||||
disabled.attr('disabled','disabled');
|
||||
|
||||
@@ -62,12 +62,22 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 어댑터, 메서드 라이브 서치 사용시 width 깨짐 방지 */
|
||||
/* 어댑터, 메서드 select2 사용시 width 깨짐 방지 */
|
||||
.select2-container {
|
||||
width: 100% !important;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 버튼 내용이 길어질 경우 말줄임표(...) 처리 */
|
||||
.btn-ellipsis {
|
||||
max-width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script language="javascript" >
|
||||
var isDetail = false;
|
||||
@@ -319,17 +329,27 @@
|
||||
}
|
||||
}
|
||||
|
||||
function setStandardMessageItemsLabel(items, buttonId) {
|
||||
const label = items.map(function(item) {
|
||||
return item.COLUMNNAME + '=' + item.COLUMNVALUE;
|
||||
}).join(';');
|
||||
function setStandardMessageItemsLabel(items, buttonId) {
|
||||
const label = items.map(function(item) {
|
||||
return item.COLUMNNAME + '=' + item.COLUMNVALUE;
|
||||
}).join(';');
|
||||
|
||||
if(items.length > 0) {
|
||||
$('#'+buttonId).text('수정 ['+label+']');
|
||||
} else {
|
||||
$('#'+buttonId).text('수정');
|
||||
}
|
||||
}
|
||||
const $btn = $('#' + buttonId);
|
||||
|
||||
if (items.length > 0) {
|
||||
$btn.text('수정 [' + label + ']');
|
||||
|
||||
$btn.attr('title', '수정 [' + label + ']');
|
||||
|
||||
$btn.addClass('btn-ellipsis');
|
||||
|
||||
} else {
|
||||
$btn.text('수정');
|
||||
$btn.removeAttr('title');
|
||||
|
||||
$btn.removeClass('btn-ellipsis');
|
||||
}
|
||||
}
|
||||
|
||||
function setupStdCommonValueModal(type) {
|
||||
currentStandardMessageType = type;
|
||||
@@ -984,6 +1004,10 @@
|
||||
|
||||
$("#btn_modify").click(modifyApi);
|
||||
$("#btn_delete").click(function(){
|
||||
if(!confirm("삭제하시겠습니까?")){
|
||||
return;
|
||||
}
|
||||
|
||||
var postData = $('#ajaxForm').serializeArray();
|
||||
postData.push({ name: "cmd" , value:"DELETE"});
|
||||
|
||||
@@ -1303,7 +1327,7 @@
|
||||
alert(e.responseText);
|
||||
},
|
||||
complete: function() {
|
||||
$("[id^='btn_']").prop("disabled", false);
|
||||
$("[id=doCloneInterfaceButton]").prop("disabled", false);
|
||||
$("#doCloneInterfaceButton").text("복제");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user