diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-01-15 11:11:18 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-01-15 11:11:18 -0800 |
commit | 3bdcd009c8817df5275041d5c4d72c716d660456 (patch) | |
tree | 9ae64b8a88a6142d29134374218854a9fe158679 /views/event.php | |
parent | 8aa73596e81208a97ba7442833ab94aebed66338 (diff) |
add tokenfield for tags
Diffstat (limited to 'views/event.php')
-rw-r--r-- | views/event.php | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ <div class="form-group" style="margin-top: 18px;"> - <label for="note_category">Tags (comma-separated)</label> + <label for="note_category">Tags</label> <input type="text" id="note_category" value="" class="form-control"> </div> @@ -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(); |