diff --git a/src/main/webapp/js/default.js b/src/main/webapp/js/default.js index 7cb443b4..9c638479 100644 --- a/src/main/webapp/js/default.js +++ b/src/main/webapp/js/default.js @@ -97,139 +97,11 @@ $(document).ready(function(){ // 상세검색 팝업 - 문화원정보 선택영역 초기작업 메서드 분리 jQuery(function($) { - var depth2H = 0; - $('.pop-advanced-search .depth1-check input').each(function () { - if ($(this).is(":checked")) { // 활성화 line에 높이 잡아주기 - $('.depth1').removeClass('on'); - $(this).parents('.depth1').addClass('on'); - depth2H = $(this).parents('.depth1-check').next('.depth2').outerHeight(); - $(this).parents('.line').siblings('.line').attr('style', ''); - $(this).parents('.line').height(depth2H + 50); - } - - $(this).siblings('.tab-name').on('click', function() { - $('.depth1').removeClass('on'); - $(this).parents('.depth1').addClass('on'); - depth2H = $(this).parents('.depth1-check').next('.depth2').outerHeight(); - $('.line').attr('style', ''); - $(this).parents('.line').height(depth2H + 50); - }); - - }); - - $('.pop-advanced-search .depth2 input').change(function() { - var html = ""; - var depth1 = ""; - var depth2 = ""; - /*alert(name.substring(name.indexOf("_")+1, name.length));*/ - if ($(this).is(':checked')) { - depth1 = $(this).parents('.depth2').siblings('.depth1-check').find('label').text(); - depth2 = $("label[for='"+$(this).attr('id')+"']").text(); - - html = "
  • " - - $(this).parents('.depth2').siblings('.depth1-check').find('input').prop('checked', true); - $(this).parents('.conditions-box').siblings('.selected-conditions').find('.conditions').append(html); - - } else { - $("button[name="+$(this).attr('id')+"]").remove(); - if ($(this).parents('.depth2').find('input:checked').length <= 0) { - $(this).parents('.depth2').siblings('.depth1-check').find('input').prop('checked', false); - } - } - //filter_mylist clk array - var filter_mylist = ""; - var filter_mylist_clk = ""; - filter_mylist = $('#d_filter_mylist').val(); - - - if($(this).attr('name') == 'second_class'){ - filter_mylist_clk = 'class_'+$(this).val() +','; - }else if($(this).attr('name') == 'second_category'){ - filter_mylist_clk = 'category_'+$(this).val() +','; - } - - if($(this).is(":checked")){ - filter_mylist += filter_mylist_clk; - - }else{ - filter_mylist = filter_mylist.replace(filter_mylist_clk,''); - } - $('#d_filter_mylist').val(filter_mylist); - - //depth-1 - var on_classArr = document.querySelectorAll("div.depth1.on"); - var filter_class = "" ; - var filter_category = "" ; - for(var i=0; i