¡@

Home 

2014/10/16 ¤W¤È 12:02:34

jquery Programming Glossary: combofilters

Combining elements for filtering with Isotope

http://stackoverflow.com/questions/7886882/combining-elements-for-filtering-with-isotope

you'll be interested in the end function called getComboFilters filters function getComboFilter filters var i 0 var comboFilters var message for var prop in filters message.push filters prop .join ' ' var filterGroup filters prop skip to next filter.. skip to next filter group if it doesn't have any values if filterGroup.length continue if i 0 copy to new array comboFilters filterGroup.slice 0 else var filterSelectors copy to fresh array var groupCombo comboFilters.slice 0 A B merge filter.. i 0 copy to new array comboFilters filterGroup.slice 0 else var filterSelectors copy to fresh array var groupCombo comboFilters.slice 0 A B merge filter Groups for var k 0 len3 filterGroup.length k len3 k for var j 0 len2 groupCombo.length j len2..