summaryrefslogtreecommitdiff
path: root/views/new-itinerary.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/new-itinerary.php
parent8aa73596e81208a97ba7442833ab94aebed66338 (diff)
add tokenfield for tags
Diffstat (limited to 'views/new-itinerary.php')
-rw-r--r--views/new-itinerary.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/new-itinerary.php b/views/new-itinerary.php
index f3ef8ff..029b4c8 100644
--- a/views/new-itinerary.php
+++ b/views/new-itinerary.php
@@ -68,7 +68,7 @@
<button class="btn btn-default" id="btn_add_leg">Add Leg</button>
<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>
@@ -108,6 +108,11 @@
<script>
$(function(){
+ $("#note_category").tokenfield({
+ createTokensOnBlur: true,
+ beautify: true
+ });
+
$("#btn_add_leg").click(function(){
add_leg();
return false;