diff options
author | elijah <elijah@riseup.net> | 2013-07-04 01:33:09 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-04 01:33:09 -0700 |
commit | 738a6c5576992e665821c76ad720a58edd228b28 (patch) | |
tree | 98a3ca4d117eaca4824c26c1e95e971da6f8d8b3 /users/app/assets | |
parent | cb10067ef5db7ed88356159ffa99902f877860e6 (diff) |
fix user typeahead
Diffstat (limited to 'users/app/assets')
-rw-r--r-- | users/app/assets/javascripts/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/assets/javascripts/users.js b/users/app/assets/javascripts/users.js index eed1961..1d05692 100644 --- a/users/app/assets/javascripts/users.js +++ b/users/app/assets/javascripts/users.js @@ -10,7 +10,7 @@ }; poll_users = function(query, process) { - return $.get("/users.json", { + return $.get("/1/users.json", { query: query }).done(process); }; @@ -66,7 +66,7 @@ $('#new_session').submit(srp.login); $('#update_login_and_password').submit(prevent_default); $('#update_login_and_password').submit(srp.update); - return $('.user.typeahead').typeahead({ + return $('#user-typeahead').typeahead({ source: poll_users }); }); |