상세검색 필터삭제

This commit is contained in:
JSYOO 2021-12-01 16:14:19 +09:00
parent 5101afaacf
commit ae57e1c7e2

View File

@ -100,7 +100,7 @@ $(document).ready(function() {
depth1 = $(this).parents('.depth2').siblings('.depth1-check').find('label').text();
depth2 = $("label[for='"+$(this).attr('id')+"']").text();
html = "<li><button type=\"button\" onclick=\"function('');\" title=\"삭제\" name=\""+ $(this).attr('id') +"\">" + depth1 + "<span class=\"sign\"> > </span><input type=\"button\" class=\"del\" value=\"삭제\">"+ depth2 +"</button></li>"
html = "<li><button type=\"button\" title=\"삭제\" name=\""+ $(this).attr('id') +"\">" + depth1 + "<span class=\"sign\"><input type=\"button\" class=\"del\" onClick=\"delDetailFilter('"+ $(this).attr('id') +"');\" value=\"삭제\"> > </span>"+ depth2 +"</button></li>"
$(this).parents('.depth2').siblings('.depth1-check').find('input').prop('checked', true);
$(this).parents('.conditions-box').siblings('.selected-conditions').find('.conditions').append(html);
@ -222,6 +222,10 @@ $(document).ready(function() {
detailSearchSetting();
}
});
function delDetailFilter(name){
$("#" + name).trigger('click');
}
<%//상세검색 ALL 초기화%>
function allReset(){