From efa7f4f17c79c7306856c65519ea57962e5334df Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 9 Feb 2012 14:34:29 +0000 Subject: [PATCH] autocomplete on a class name --- ext/index/theme.php | 4 ++-- ext/tag_edit/theme.php | 19 +------------------ lib/shimmie.js | 2 +- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/ext/index/theme.php b/ext/index/theme.php index 0a4b1fa8..bd00a212 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -80,12 +80,12 @@ and of course start organising your images :-) $h_search_link = make_link(); $h_search = "

-
-
"; + "; return $h_prev.' | '.$h_index.' | '.$h_next.'
'.$h_search; } diff --git a/ext/tag_edit/theme.php b/ext/tag_edit/theme.php index 4c08d5b3..bdbce1a1 100644 --- a/ext/tag_edit/theme.php +++ b/ext/tag_edit/theme.php @@ -20,29 +20,12 @@ class TagEditTheme extends Themelet { } public function get_tag_editor_html(Image $image) { - $script = " - - "; $h_tags = html_escape($image->get_tag_list()); return " Tags - + - $script "; } diff --git a/lib/shimmie.js b/lib/shimmie.js index 611d49ee..068d3b66 100644 --- a/lib/shimmie.js +++ b/lib/shimmie.js @@ -29,7 +29,7 @@ $(document).ready(function() { $("time").timeago(); $('.search_input').DefaultValue('Search'); - $('#search_input').autocomplete(base_href + '/api/internal/tag_list/complete', { + $('.tag_autocomplete').autocomplete(base_href + '/api/internal/tag_list/complete', { width: 320, max: 15, highlight: false,