- Moderator
- 1044
Topic for general discussion regarding Nop Ajax Filters
@if (Model.NopAjaxFiltersSettingsModel.EnableSpecificationsFilter)
{
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
var $div = $('.specificationFilterGroupPanel');
var e = $div.attr("data-optionsGroupId");
var f = {};
f.Id = e;
var $div1 = $('.manufacturerFilterGroupPanel');
var $div2 = $('.attributeFilterGroupPanel');
var height = $div.height();
$div.hide().css({ height: 10 });
ab = $(".specificationFilterPanel7Spikes");
$(ab).click(function () {
if (e == "2") { $div.show().animate({ height: height }, { duration: 500 }); }
if ($div.is(':visible')) {
$div.animate({ height: 0 }, { duration: 500, complete: function () {
$div.hide();
}
});
} else {
$div.show().animate({ height: height }, { duration: 500 });
$div1.hide();
$div2.hide();
}
return false;
});
});
</script>
@Html.Action("GetSpecificationFilter", "SpecificationFilter7Spikes")
}