summaryrefslogtreecommitdiff
path: root/views/new-bookmark.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-bookmark.php
parent8aa73596e81208a97ba7442833ab94aebed66338 (diff)
add tokenfield for tags
Diffstat (limited to 'views/new-bookmark.php')
-rw-r--r--views/new-bookmark.php7
1 files changed, 6 insertions, 1 deletions
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 @@
</div>
<div class="form-group">
- <label for="note_category">Tags (<code>category</code>, optional, comma-separated list of tags)</label>
+ <label for="note_category">Tags (<code>category</code>)</label>
<input type="text" id="note_category" value="<?= $this->bookmark_tags ?>" class="form-control" placeholder="e.g. web, personal">
</div>
@@ -67,6 +67,11 @@
<script>
$(function(){
+ $("#note_category").tokenfield({
+ createTokensOnBlur: true,
+ beautify: true
+ });
+
$("#btn_post").click(function(){
if($("#note_bookmark").val() == "") {