From 3bdcd009c8817df5275041d5c4d72c716d660456 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 15 Jan 2017 11:11:18 -0800 Subject: add tokenfield for tags --- views/editor.php | 9 +++++++-- views/event.php | 7 ++++++- views/layout.php | 10 ++++++++-- views/new-bookmark.php | 7 ++++++- views/new-itinerary.php | 7 ++++++- views/new-post.php | 39 +++++++++++++++++++++++++-------------- 6 files changed, 58 insertions(+), 21 deletions(-) (limited to 'views') diff --git a/views/editor.php b/views/editor.php index be45a07..5247bda 100644 --- a/views/editor.php +++ b/views/editor.php @@ -20,7 +20,6 @@ - @@ -32,6 +31,12 @@ + + + + + + @@ -74,7 +79,7 @@ - + diff --git a/views/event.php b/views/event.php index 1a11681..a71ce79 100644 --- a/views/event.php +++ b/views/event.php @@ -38,7 +38,7 @@
- +
@@ -56,6 +56,11 @@ $("#start_date .timezone").val(tz_seconds_to_offset(d.getTimezoneOffset() * 60 * -1)); }); + $("#note_category").tokenfield({ + createTokensOnBlur: true, + beautify: true + }); + $("#btn_post").click(function(){ var event_start = $("#start_date .date").val()+"T"+$("#start_date .time").val()+$("#start_date .timezone").val(); diff --git a/views/layout.php b/views/layout.php index 2f4b243..4d5e5c0 100644 --- a/views/layout.php +++ b/views/layout.php @@ -18,6 +18,14 @@ + + + + + + + + @@ -32,8 +40,6 @@ - - diff --git a/views/new-bookmark.php b/views/new-bookmark.php index 4b4eebb..32e9043 100644 --- a/views/new-bookmark.php +++ b/views/new-bookmark.php @@ -28,7 +28,7 @@
- +
@@ -67,6 +67,11 @@
Tags:
Slug: