function moduleProductListToggleDetails(id) { if ($('#trv_module_product_list_products_'+id).css("display") == "none") { $('#trv_module_product_list_products_'+id).slideDown(500, function(){ $('#trv_module_product_list_button_'+id).addClass("trv_module_product_list_link_close"); }); } else { $('#trv_module_product_list_products_'+id).slideUp(500, function(){ $('#trv_module_product_list_button_'+id).removeClass("trv_module_product_list_link_close"); }); } } function moduleProductListFilter(isIFrame) { blockScreen(); setTimeout("callModuleProductListFilter("+isIFrame+")", 150); } function callModuleProductListFilter(isIFrame) { var filterText = $('input#trv_module_product_list_input_filter').val().trim(); $('.trv_module_product_list_search_text').removeHighlight(); if (filterText.length == 0) { $(".trv_module_product_list_box_container").show(); $('.trv_module_product_list_teaser').show(); } else { $(".trv_module_product_list_box_container").each( function (column) { var searchText = ""; $(".trv_module_product_list_search_text",this).each(function() { searchText += $(this).text()+" "; }); if (searchText.toLowerCase().indexOf(filterText.toLowerCase()) >= 0) { $(this).show(); } else { $(this).hide(); } }); $('.trv_module_product_list_search_text').highlight(filterText); $('.trv_module_product_list_teaser:not(:first)').hide(); } count = $(".trv_module_product_list_box_container:visible").length; $('.trv_module_product_list_result_systems').text(count); $('.trv_module_product_list_result_products').text($(".trv_module_product_list_box_container:visible .trv_module_product_list_count").length); if (count == 0) { $('.trv_module_product_list_result').addClass('trv_module_product_list_result_red'); } else { $('.trv_module_product_list_result').removeClass('trv_module_product_list_result_red'); } if (isIFrame) { setIframeTop(); } unblockScreen(); } function moduleProductListFilterReset(isIFrame) { $('input#trv_module_product_list_input_filter').val(""); moduleProductListFilter(isIFrame); } function moduleProductListSetProductLable() { $('.trv_module_product_list_product_count').each(function(){ $(this).html($(this).text()+" Ürün"); }); } function toogleHelpWindow(element, name) { var toggleElement = $(element).next(); if ($(toggleElement).is(":visible")) { $(toggleElement).hide(); $(element).parent().addClass("trv_help_container_hidden"); $(element).addClass("trv_help_container_navi_closed"); } else { $(toggleElement).show(); $(element).parent().removeClass("trv_help_container_hidden"); $(element).removeClass("trv_help_container_navi_closed"); } $.trv_postJson({ blockScreen: false, url: "http://www.it-matchmaker.com.tr/core/ajax/ajax.php?app_language=tr&PHPSESSID=f51e49879d2b9704273bd06b24345b69", ajax_type: "SET_HELP_HIDDEN", parameter: { page_charset: "utf-8", appName: "homepage_tr", hidden: $(toggleElement).is(":visible")?0:1, helpName: name }, onSuccess: function(data) { } }); }