[backport] fix issue #4585 - fix search in discover home page

stable
Juanfran 2016-10-02 19:04:29 +02:00
parent 384df341e9
commit 30e04ea2ef
1 changed files with 4 additions and 1 deletions

View File

@ -26,10 +26,13 @@ DiscoverSearchBarDirective = () ->
templateUrl: 'discover/components/discover-search-bar/discover-search-bar.html', templateUrl: 'discover/components/discover-search-bar/discover-search-bar.html',
bindToController: true, bindToController: true,
scope: { scope: {
q: "=" q: "=",
filter: "=", filter: "=",
onChange: "&" onChange: "&"
}, },
compile: (element, attrs) ->
if !attrs.q
attrs.q = ''
link: link link: link
} }