summaryrefslogtreecommitdiff
path: root/views/event.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-01-15 11:11:18 -0800
committerAaron Parecki <aaron@parecki.com>2017-01-15 11:11:18 -0800
commit3bdcd009c8817df5275041d5c4d72c716d660456 (patch)
tree9ae64b8a88a6142d29134374218854a9fe158679 /views/event.php
parent8aa73596e81208a97ba7442833ab94aebed66338 (diff)
add tokenfield for tags
Diffstat (limited to 'views/event.php')
-rw-r--r--views/event.php7
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();