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:
parent
78a8dc82f4
commit
c38c744156
3 changed files with 3 additions and 3 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue