Commit a0406ac8 authored by Randall Leeds's avatar Randall Leeds

Make the search icon clickable

When the search icon is clicked give focus to the search input.
parent d72126c9
module.exports = ['$http', '$parse', ($http, $parse) ->
link: (scope, elem, attr, ctrl) ->
button = elem.find('button')
input = elem.find('input')
button.on('click', -> input.focus())
scope.reset = (event) ->
event.preventDefault()
scope.query = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment