fix issue #4585 - fix search in discover home page
parent
384df341e9
commit
cf07026e16
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue