Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Reactivating typeahead by add new tag dialog

uggrock613047ec7b82
diff --git a/data/index.html b/data/index.html
index ea1c14791..b6cfd49dc 100644
--- a/data/index.html
+++ b/data/index.html
@@ -253,12 +253,12 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4>Add Tags</h4>
</div>
- <div class="modal-body">
+ <div class="modal-body" style="height: 200px">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="tags">Comma separated list of the tags</label>
<div class="controls">
- <input type="text" name="tags" id="tags" />
+ <input type="text" name="tags" id="tags" autocomplete="off"/>
</div>
</div>
</form>
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.js
index b69d6d4d7..caa4f97d3 100644
--- a/data/js/tags.ui.js
+++ b/data/js/tags.ui.js
@@ -303,8 +303,12 @@ define(function(require, exports, module) {
function extractLast( term ) {
return split( term ).pop();
}
-
- $( "#tags" )
+
+ // TODO reactive comma separated autocomplete
+ $( "#tags" ).typeahead( {
+ "source": TSCORE.Config.getAllTags()
+ })
+/* $( "#tags" )
// don't navigate away from the field on tab when selecting an item
.bind( "keydown", function( event ) {
if ( event.keyCode === $.ui.keyCode.TAB &&
@@ -334,7 +338,7 @@ define(function(require, exports, module) {
this.value = terms.join( ", " );
return false;
}
- });
+ }); */
$("#tags").val("");
$( '#dialogAddTags' ).modal({show: true});