aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-03 21:51:23 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-03 21:51:23 +0000
commit5169f7f143550984cbb9e75dca6627a311ac03c4 (patch)
tree2efa8cdd6250491affc94b807540bf9b0fdb6fe8 /views
parentd33f59f7c77b90a40eb1f08c9d1cb9e284fd67f9 (diff)
downloadelgg-5169f7f143550984cbb9e75dca6627a311ac03c4.tar.gz
elgg-5169f7f143550984cbb9e75dca6627a311ac03c4.tar.bz2
Cleaning up autocomplete view.
git-svn-id: https://code.elgg.org/elgg/trunk@3459 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/input/autocomplete.php19
1 files changed, 4 insertions, 15 deletions
diff --git a/views/default/input/autocomplete.php b/views/default/input/autocomplete.php
index 71f287a2d..052219a1b 100644
--- a/views/default/input/autocomplete.php
+++ b/views/default/input/autocomplete.php
@@ -21,21 +21,10 @@
global $autocomplete_js_loaded;
$internalname = $vars['internalname'];
+ $value = $vars['value'];
- if(!$internalname)
- $internalname = 'entity_selected_guid';
-
- $internalname_text = $vars['internalname_text'];
- if(!$internalname_text)
- $internalname_text = 'selected_text';
-
- $value_id = $vars['value_id'];
- if(!$value_id)
- $value_id = 0;
-
- $value_text = $vars['value_text'];
- if(!$value_text)
- $value_text = '';
+ if(!$value)
+ $value= '';
if($vars['internal_id'])
$id_autocomplete = $vars['internal_id'];
@@ -47,11 +36,11 @@
$ac_url = $vars['url'] . 'pg/autocomplete?' . $ac_url_params;
if (!isset($autocomplete_js_loaded)) $autocomplete_js_loaded = false;
+
?>
<!-- show the input -->
<input type="text" class='autocomplete' name ='<?php echo $internalname; ?>_autocomplete' value='<?php echo $value?>' />
- <input type="hidden" name="autocomplete_params" value="<?php echo $ac_url_params; ?>" />
<input type="hidden" name="<?php echo $internalname; ?>" value='<?php echo $value; ?>' />
<?php