Fix contact search in the facebook friend finder.

It was looking for #contact_list_search instead of .contact_list_search.
This commit is contained in:
Raphael Sofaer 2011-08-05 12:34:48 -07:00
parent 78a8dc82f4
commit c38c744156
3 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@
- if @contacts.count > 0
.contact_list
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => "People sharing with you"
= search_field_tag :contact_search, "", :id => 'contact_list_search', :class => 'contact_list_search', :results => 5, :placeholder => "People sharing with you"
%ul
- for contact in @contacts
%li{:data=>{:contact_id=>contact.id}}

View file

@ -4,7 +4,7 @@
.contact_list_controls
= search_field_tag :contact_search, "", :id => 'contact_list_search', :results => 5, :placeholder => t('.all_contacts')
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('.all_contacts')
= t('contacts', :count =>@aspect_contacts_count)
.contact_list

View file

@ -5,7 +5,7 @@
var List = {
initialize: function() {
$("#contact_list_search").live("keyup", function(e) {
$(".contact_list_search").live("keyup", function(e) {
var search = $(this);
var list = $("ul", ".contact_list");
var query = new RegExp(search.val(),'i');