aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/input/autocomplete.php4
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); ?> />