Search empty results

stable
Xavier Julián 2014-08-13 15:59:37 +02:00
parent 713d8f6db3
commit c70a96cb22
3 changed files with 10 additions and 10 deletions

View File

@ -209,8 +209,6 @@ SearchDirective = ($log, $compile, $templatecache, $routeparams, $location) ->
$el.on "click", ".search-filter li > a", (event) -> $el.on "click", ".search-filter li > a", (event) ->
event.preventDefault() event.preventDefault()
# Do nothing if no results found.
return if not lastSeatchResults
target = angular.element(event.currentTarget) target = angular.element(event.currentTarget)
sectionName = target.parent().data("name") sectionName = target.parent().data("name")

View File

@ -2,7 +2,9 @@ a.close(href="", title="close")
span.icon.icon-delete span.icon.icon-delete
form form
h2.title Search h2.title Search
fieldset
input(type="text", name="text", id="search-text", placeholder="What are you looking for?", data-required="true") input(type="text", name="text", id="search-text", placeholder="What are you looking for?", data-required="true")
fieldset
input.hidden(type="submit") input.hidden(type="submit")
a.button.button-green(href="", title="Accept") a.button.button-green(href="", title="Accept")
span Search span Search

View File

@ -24,7 +24,7 @@ section.search-filter
span.num 0 span.num 0
span.name Wiki Pages span.name Wiki Pages
// li //- li
// a(href="#") //- a(href="#")
// span.icon.icon-edit //- span.icon.icon-edit
// | 3 Users //- | 3 Users