diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 00:47:03 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 00:47:03 +0000 |
commit | 25629c48781dd87b2594b03262a98abc4ee9a5eb (patch) | |
tree | 1308a9bdcabf7eb2f41e4e377c21c670bb4eb547 /views/default | |
parent | 782fd909b042740f736b8c668f74d47a43f703f3 (diff) | |
download | elgg-25629c48781dd87b2594b03262a98abc4ee9a5eb.tar.gz elgg-25629c48781dd87b2594b03262a98abc4ee9a5eb.tar.bz2 |
Refs #2102: Some input/autocomplete fixes
git-svn-id: http://code.elgg.org/elgg/trunk@8245 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/input/autocomplete.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/autocomplete.php b/views/default/input/autocomplete.php index 8fe5ab664..d0b12c31d 100644 --- a/views/default/input/autocomplete.php +++ b/views/default/input/autocomplete.php @@ -26,11 +26,15 @@ $ac_url_params = http_build_query(array( 'match_owner' => $vars['match_owner'], )); +unset($vars['match_on']); +unset($vars['match_owner']); + elgg_register_js('js/lib/autocomplete.js', 'autocomplete', 'footer'); ?> <script type="text/javascript"> +elgg.provide('elgg.autocomplete'); elgg.autocomplete.url = "<?php elgg_get_site_url() . 'pg/livesearch?' . $ac_url_params; ?>"; </script> <input type="text" <?php echo elgg_format_attributes($vars); ?> /> |