fixes the search for projects
This commit is contained in:
parent
c75ac8218e
commit
3ece40c222
1 changed files with 5 additions and 5 deletions
|
@ -8,17 +8,17 @@ class @ProjectsList
|
||||||
|
|
||||||
$(".projects-list-filter").keyup ->
|
$(".projects-list-filter").keyup ->
|
||||||
terms = $(this).val()
|
terms = $(this).val()
|
||||||
uiBox = $(this).closest('.projects-list-holder')
|
uiBox = $('div.projects-list-holder')
|
||||||
if terms == "" || terms == undefined
|
if terms == "" || terms == undefined
|
||||||
uiBox.find(".projects-list li").show()
|
uiBox.find("ul.projects-list li").show()
|
||||||
else
|
else
|
||||||
uiBox.find(".projects-list li").each (index) ->
|
uiBox.find("ul.projects-list li").each (index) ->
|
||||||
name = $(this).find(".filter-title").text()
|
name = $(this).find("span.filter-title").text()
|
||||||
|
|
||||||
if name.toLowerCase().search(terms.toLowerCase()) == -1
|
if name.toLowerCase().search(terms.toLowerCase()) == -1
|
||||||
$(this).hide()
|
$(this).hide()
|
||||||
else
|
else
|
||||||
$(this).show()
|
$(this).show()
|
||||||
uiBox.find(".projects-list li.bottom").hide()
|
uiBox.find("ul.projects-list li.bottom").hide()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue