Skip to content

Commit

Permalink
Fix the autocomplete callback in item_edit_form(). We were
Browse files Browse the repository at this point in the history
incorrectly matching the form input in the jQuery selector.  Did this
ever work?  Fixes ticket #1168
  • Loading branch information
bharat committed Jun 27, 2010
1 parent e5ae2c9 commit 5335e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tag/helpers/tag_event.php
Expand Up @@ -67,8 +67,8 @@ static function item_deleted($item) {
static function item_edit_form($item, $form) {
$url = url::site("tags/autocomplete");
$form->script("")
->text("$('form input[id=tags]').ready(function() {
$('form input[id=tags]').autocomplete(
->text("$('form input[name=tags]').ready(function() {
$('form input[name=tags]').autocomplete(
'$url', {max: 30, multiple: true, multipleSeparator: ',', cacheLength: 1});
});");

Expand Down

0 comments on commit 5335e4c

Please sign in to comment.