From 21c583a4cd7c6c74ba8f907c962df8718fc2b3a1 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 22 Mar 2011 18:20:37 +0100 Subject: [PATCH] autocomplete with jquery (hardcoded tag list for now) --- data/templates/editbookmark.tpl.php | 41 +++++++++++++++++++++++++++-- www/bookmarks.php | 2 +- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php index bbdd544..0bfdb29 100644 --- a/data/templates/editbookmark.tpl.php +++ b/data/templates/editbookmark.tpl.php @@ -118,15 +118,52 @@ function jsEscTitle($title) - + diff --git a/www/bookmarks.php b/www/bookmarks.php index 0753c16..3b1d50a 100644 --- a/www/bookmarks.php +++ b/www/bookmarks.php @@ -146,7 +146,7 @@ if ($userservice->isLoggedOn() && POST_SUBMITTED != '') { $description = trim(POST_DESCRIPTION); $privateNote = trim(POST_PRIVATENOTE); $status = intval(POST_STATUS); - $categories = trim(implode(',', $_POST['tags'])); + $categories = explode(',', $_POST['tags']); $saved = true; if ($bookmarkservice->addBookmark($address, $title, $description, $privateNote, $status, $categories)) { if (POST_POPUP != '') {