수정/삭제 AJAX 요청 시 버튼 비활성화 후 응답 시 재활성화
This commit is contained in:
@@ -867,6 +867,10 @@
|
||||
type: "POST",
|
||||
url:url,
|
||||
data: postData,
|
||||
beforeSend: function() {
|
||||
$("[id^='btn_']").prop("disabled", true);
|
||||
$("#btn_modify").text("처리중 . . . . .");
|
||||
},
|
||||
success:function(message){
|
||||
alert("저장 되었습니다. \n\n[실시간 반영 결과]\n"+JSON.stringify(message));
|
||||
if (typeof callback === 'function') {
|
||||
@@ -877,6 +881,10 @@
|
||||
},
|
||||
error:function(xhr, status, errorMsg){
|
||||
alert(JSON.parse(xhr.responseText).errorMsg);
|
||||
},
|
||||
complete: function() {
|
||||
$("[id^='btn_']").prop("disabled", false);
|
||||
$("#btn_modify").text("수정");
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -936,6 +944,11 @@
|
||||
type : "POST",
|
||||
url:url,
|
||||
data:postData,
|
||||
beforeSend: function() {
|
||||
$("[id^='btn_']").prop("disabled", true);
|
||||
$("#btn_delete").text("처리중 . . . . .");
|
||||
},
|
||||
|
||||
success:function(args){
|
||||
alert("삭제 되었습니다.");
|
||||
goNav(returnUrl);//LIST로 이동
|
||||
@@ -943,6 +956,10 @@
|
||||
},
|
||||
error:function(e){
|
||||
alert(e.responseText);
|
||||
},
|
||||
complete: function() {
|
||||
$("[id^='btn_']").prop("disabled", false);
|
||||
$("#btn_delete").text("삭제");
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1203,6 +1220,10 @@
|
||||
newInboundHttpMethod,
|
||||
newInboundRestPath,
|
||||
},
|
||||
beforeSend: function() {
|
||||
$("[id^='btn_']").prop("disabled", true);
|
||||
$("#doCloneInterfaceButton").text("처리중 . . . . .");
|
||||
},
|
||||
success: function () {
|
||||
alert("["+orgApiInterfaceId+"] => ["+newBizCode+"]["+newApiInterfaceId+"] 복제 완료.");
|
||||
$('#cloneInterfaceModal').modal('hide');
|
||||
@@ -1210,6 +1231,10 @@
|
||||
},
|
||||
error: function (e) {
|
||||
alert(e.responseText);
|
||||
},
|
||||
complete: function() {
|
||||
$("[id^='btn_']").prop("disabled", false);
|
||||
$("#doCloneInterfaceButton").text("복제");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user