diff --git a/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataCallToListView.jsp b/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataCallToListView.jsp index 355e2e14..336f6a8b 100644 --- a/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataCallToListView.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataCallToListView.jsp @@ -79,7 +79,6 @@
-
diff --git a/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataSMLView.jsp b/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataSMLView.jsp index ee7bbb14..2c910fe5 100644 --- a/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataSMLView.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/msgcampain/tw/MsgTWDataSMLView.jsp @@ -283,37 +283,62 @@ function addTWCallToInfo(){ $(document).ready(function () { $(".receipt_number_table_wrap .tbody_ul").selectable({ - selecting: function (event, ui) { - console.log("selecting"); - $(ui.selecting).find("input[type='checkbox']").attr("checked", "checked"); - }, - selected: function (event, ui) { - if ($(ui.selected).find("input[type='checkbox']").attr("checked") == true) { - console.log("selected remove"); - $(ui.selected).find("input[type='checkbox']").removeAttr("checked"); - } else { - console.log("selected checed"); - $(ui.selected).find("input[type='checkbox']").attr("checked", "checked"); - } + filter: "li", + stop: function () { + $(".ui-selected input",this).each(function () { + this.checked = !this.checked; + if ($(this).is(':checked')) { + $(this).closest(".ui-widget-content").addClass("ui-selected"); + } else { + $(this).closest(".ui-widget-content").removeClass("ui-selected"); + } + publishCommon.clickCheckPrice(); + }); + } + }); + + $(".receipt_number_table_wrap .tbody_ul input[type='checkbox']",".receipt_number_table_wrap .tbody_ul input[type='checkbox']+label").click(function () { + if ($(this).is(':checked')) { + $(this).closest(".ui-widget-content").addClass("ui-selected"); + } else { + $(this).closest(".ui-widget-content").removeClass("ui-selected"); + } + }); + + $("#checkAll").click(function(){ + + var checkbox = $('[name=chkCallTo]'); + var btnAllVal = $("#checkAll").val(); + + if($(this).is(":checked") == true){ + checkbox.prop("checked",false); + }else{ + //전체선택 체크해주기 + if(btnAllVal == 'N'){ + + //publishCommon.longMousePressCheck(checkbox, 20); + publishCommon.clickCheckAll(); + + }else{//전체선택 해제해주기 + + $("input:checkbox[name='chkCallTo']").each(function () { + $(this).prop("checked",false); + }); + + $("#checkAll").val("N"); + $("#checkAll").text("전체선택"); + + } + } publishCommon.clickCheckPrice(); - }, - unselecting: function (event, ui) { - console.log("unselecting"); - $(ui.unselecting).find("input[type='checkbox']").removeAttr("checked"); - }, - unselected: function (event, ui) { - $(ui.unselected).find("input[type='checkbox']").removeAttr("checked"); - publishCommon.clickCheckPrice(); - }, - filter: "li" + }); onlongclick(".btn_check_one", 1000, function () { var checkbox = $('[name=chkCallTo]'); publishCommon.longMousePressCheck(checkbox, 10, $(".btn_check_one")); publishCommon.clickCheckPrice(); - }); $(".btn_check_one").click(function(){ @@ -322,16 +347,7 @@ function addTWCallToInfo(){ publishCommon.clickCheckPrice(); }); - $("#checkAll").click(function(){ - - publishCommon.clickCheckAll(); - publishCommon.clickCheckPrice(); - - }); - }); - //수신자 목록 추가된 건수 및 발송 금액 변경해주기 - fnChkCallToChange(); }); @@ -343,7 +359,6 @@ function addTWCallToInfo(){ } - //받는사람 하단 페이징 처리 function fnCallToListPaging(pageIndex){ @@ -3419,6 +3434,14 @@ function getMjMsgSentListAll(pageNo) { + +
+ +

처리가 완료되었습니다.

+ +
+ +