Skip to content

Commit

Permalink
Fixed shared/_search to use Form.Element.Observer for ajax search fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Dec 20, 2011
1 parent ec3e97a commit 4fc57b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views/shared/_search.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
= text_field_tag("query", @current_query, :size => 23)

:javascript
$("query").on('change', function(event) {
element = event.element();
crm.search(element.value, '#{path}');
new Form.Element.Observer('query', 1.5, function(element, value) {
crm.search(value, '#{path}')
});

0 comments on commit 4fc57b3

Please sign in to comment.