Sha256: 03232db39cca0a752dfd2e3980984b670e3dfecb087ff8a138c0e53c1215df3a
Contents?: true
Size: 529 Bytes
Versions: 19
Compression:
Stored size: 529 Bytes
Contents
$.fn.domFilter = (options) -> $input = $(options['input']) $elementsContainer = $(@) for selector in options['selector'].split(' ') $elementsContainer = $elementsContainer.children(selector) $(options['input']).on 'keyup change', -> inputVal = $input.val().toUpperCase() $elementsContainer.each -> filterString = String($(@).data('filter')) if typeof $(@).data('no-filter') isnt 'undefined' or filterString.toUpperCase().indexOf(inputVal) > -1 $(@).show() else $(@).hide()
Version data entries
19 entries across 19 versions & 1 rubygems