선거문자 20건 발송 마우스 드래그 체크 선택 오류 수정
This commit is contained in:
parent
049d6794d6
commit
1bd73a7589
@ -65,9 +65,11 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list_bottom clearfix">
|
||||
<ul class="pagination">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="imageWeb" jsFunction="fnCallToListPaging" />
|
||||
</ul>
|
||||
<c:if test="${not empty resultCallToList}">
|
||||
<ul class="pagination">
|
||||
<ui:pagination paginationInfo = "${paginationInfo}" type="imageWeb" jsFunction="fnCallToListPaging" />
|
||||
</ul>
|
||||
</c:if>
|
||||
<div class="list_bottom_right">
|
||||
<button type="button" class="btnType btn_gray fill" onclick="fnCallToListReset();">초기화</button>
|
||||
<div class="btn_popup_wrap">
|
||||
@ -77,16 +79,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%-- <div class="btn_popup_wrap">
|
||||
<button type="button" class="btnType btnType8" onclick="fnCallToListReset();">수신목록 초기화</button>
|
||||
</div>
|
||||
<div class="remove_btnWrap">
|
||||
<button type="button" class="btnType15 all_del"><i class="remove_img"></i>전체삭제</button>
|
||||
<button type="button" class="btnType15 select_del"><i class="remove_img"></i>선택삭제</button>
|
||||
<button type="button" class="btnType15 select_one"><i class="remove_img"></i>1명씩선택</button>
|
||||
</div>
|
||||
<div class="list_bottom_right">
|
||||
<p>총 <span class="c_e40000" id="rowTotCnt">0</span>건 / 중복 <span class="c_002c9a" id="rowDupCnt">0</span>건</p>
|
||||
<button type="button" class="address_reg2 addressregi_btn">주소록에 등록</button>
|
||||
</div> --%>
|
||||
</div>
|
||||
@ -284,18 +284,22 @@ 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");
|
||||
}
|
||||
|
||||
publishCommon.clickCheckPrice();
|
||||
},
|
||||
unselecting: function (event, ui) {
|
||||
console.log("unselecting");
|
||||
$(ui.unselecting).find("input[type='checkbox']").removeAttr("checked");
|
||||
},
|
||||
unselected: function (event, ui) {
|
||||
|
||||
@ -21,7 +21,8 @@ var publishCommon = {
|
||||
else if (cnt >= checkLength) {
|
||||
clearInterval(checkEvent); // 자동체크 끝.
|
||||
}
|
||||
$(checkTarget[cnt]).prop('checked', true); // 체크박스 체크.
|
||||
//$(checkTarget[cnt]).prop('checked', true); // 체크박스 체크.
|
||||
$(checkTarget[cnt]).attr("checked", "checked"); // 체크박스 체크.
|
||||
$($target).on("mouseup",function(){
|
||||
//마우스떼면 멈춤
|
||||
clearInterval(checkEvent);
|
||||
@ -38,7 +39,8 @@ var publishCommon = {
|
||||
var chkSts = $(this).is(":checked");
|
||||
|
||||
if(!chkSts){
|
||||
$(this).prop("checked","true");
|
||||
$(this).attr("checked", "checked");
|
||||
//$(this).prop("checked","true");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -49,6 +51,7 @@ var publishCommon = {
|
||||
|
||||
var chkCnt = $("input:checkbox[name='chkCallTo']").length;
|
||||
var chkAllSts = $('input:checkbox[name="receipt_number_check"]').is(':checked');
|
||||
//var chkAllSts = $('input:checkbox[name="receipt_number_check"]').attr("checked");
|
||||
|
||||
if(chkCnt == 0){
|
||||
|
||||
@ -60,9 +63,11 @@ var publishCommon = {
|
||||
$("input:checkbox[name='chkCallTo']").each(function(){
|
||||
|
||||
if(chkAllSts){
|
||||
$(this).prop("checked",true);
|
||||
$(this).attr("checked", "checked");
|
||||
//$(this).prop("checked",true);
|
||||
}else{
|
||||
$(this).prop("checked",false);
|
||||
$(this).removeAttr("checked");
|
||||
//$(this).prop("checked",false);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user