|
@@ -470,6 +470,9 @@
|
|
|
$(formId + ' select[name=planSq]').removeAttr("disabled");
|
|
$(formId + ' select[name=planSq]').removeAttr("disabled");
|
|
|
$(formId + ' select[name=socialType]').removeAttr("disabled");
|
|
$(formId + ' select[name=socialType]').removeAttr("disabled");
|
|
|
$(formId + ' button[id=btnSearchPlan]').removeAttr("style");
|
|
$(formId + ' button[id=btnSearchPlan]').removeAttr("style");
|
|
|
|
|
+
|
|
|
|
|
+ // 대기상태로 세팅
|
|
|
|
|
+ $("input[name=applyGb]").val("P");
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
// 소셜 기본정보 저장
|
|
// 소셜 기본정보 저장
|
|
@@ -531,13 +534,40 @@
|
|
|
|
|
|
|
|
// 소셜 저장
|
|
// 소셜 저장
|
|
|
var fnSocialSave = function(msg) {
|
|
var fnSocialSave = function(msg) {
|
|
|
|
|
+
|
|
|
mcxDialog.confirm(msg +' 하시겠습니까?', {
|
|
mcxDialog.confirm(msg +' 하시겠습니까?', {
|
|
|
cancelBtnText: "취소",
|
|
cancelBtnText: "취소",
|
|
|
sureBtnText: "확인",
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
sureBtnClick: function() {
|
|
|
|
|
+
|
|
|
|
|
+ var formId = '#detailForm';
|
|
|
|
|
+ // 서버전송시 임시해제
|
|
|
|
|
+ if("P" == $("input[name=applyGb]").val()){
|
|
|
|
|
+ if( "" == $("#detailForm input[name=socialSq]").val()){ // 신규등록
|
|
|
|
|
+ $(formId + ' select[name=useYn]').attr('disabled', false);
|
|
|
|
|
+ }
|
|
|
|
|
+ }else if("A" == $("input[name=applyGb]").val()){
|
|
|
|
|
+ $(formId+ " input").prop("disabled", false);
|
|
|
|
|
+ $(formId+ " select").prop("disabled", false);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
var actionUrl = '/marketing/social/save';
|
|
var actionUrl = '/marketing/social/save';
|
|
|
gagajf.ajaxFormSubmit(actionUrl, '#detailForm', function() {
|
|
gagajf.ajaxFormSubmit(actionUrl, '#detailForm', function() {
|
|
|
fnSearch();
|
|
fnSearch();
|
|
|
|
|
+
|
|
|
|
|
+ // 전송완료 후 원래 상태값으로 변경
|
|
|
|
|
+ if("P" == $("input[name=applyGb]").val()){
|
|
|
|
|
+ if( "" == $("#detailForm input[name=socialSq]").val()){ // 신규등록
|
|
|
|
|
+ $(formId + ' select[name=useYn]').attr('disabled', true);
|
|
|
|
|
+ }
|
|
|
|
|
+ }else if("A" == $("input[name=applyGb]").val()){
|
|
|
|
|
+ $(formId+ " input").prop("disabled", true);
|
|
|
|
|
+ $(formId+ " select").prop("disabled", true);
|
|
|
|
|
+ $(formId + ' input[name=edDate]').attr('readonly', false);
|
|
|
|
|
+ $(formId + ' input[name=edDate]').prop('disabled', false);
|
|
|
|
|
+ $(formId + ' #edTimeHour').prop('disabled', false);
|
|
|
|
|
+ $(formId + ' #edTimeHour').attr('readonly', false);
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|