What's New
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Tagged: layered
So I try to custom the new Layer module. I’ve got a little problem with the arrow for the open/close function.
i want layer close in defult
plz helpe
function openCloseFilter()
{
$(document).on(‘click’, ‘#layered_form span.layered_close a’, function(e)
{
var this_rel = $(this).data(‘rel’) ? $(this).data(‘rel’) : $(this).attr(‘rel’);
if ($(this).html() == ‘<‘)
{
$(‘#’+this_rel).show();
$(this).html(‘v’);
$(this).parent().removeClass(‘closed’);
}
else
{
$(‘#’+this_rel).hide();
$(this).html(‘<‘);
$(this).parent().addClass(‘closed’);
}
e.preventDefault();
});
}
You must be logged in to reply to this topic.