Лучший Ответ Kess , 27 October 2013 - 19:36
Ok, Iv'e changed the script to suit your needs better:
jQuery(document).ready(function() {
jQuery(".filter-fields .filter-inline .element-jqueryui .field").each(function() {
if (jQuery(this).find("input").length > 3) {
jQuery(this).after( "<div class='toggleheight'>▼</div>" );
}
});
jQuery(".toggleheight").click(function(e){
jQuery(this).prev().toggleClass("expanded");
e.stopPropagation();
});
jQuery('html').click(function() {
jQuery(".filter-fields .expanded").removeClass("expanded");
});
});
This will solve #1 and #2
For your last request just add this css:
.expanded + .toggleheight {
display: none;
}
I don't know about #3. I've asked our developers about that.
Перейти к сообщению


Тема закрыта









