remove tags.json

This commit is contained in:
rr-
2017-10-01 21:46:53 +02:00
parent 253e28c1b5
commit 1c4c5c5f91
50 changed files with 448 additions and 633 deletions

View File

@ -2,6 +2,7 @@
const router = require('../router.js');
const uri = require('../util/uri.js');
const misc = require('../util/misc.js');
const views = require('../util/views.js');
const PostContentControl = require('../controls/post_content_control.js');
const PostNotesOverlayControl
@ -23,12 +24,16 @@ class HomeView {
views.syncScrollPosition();
if (this._formNode) {
this._tagAutoCompleteControl = new TagAutoCompleteControl(
this._searchInputNode);
this._autoCompleteControl = new TagAutoCompleteControl(
this._searchInputNode,
{
confirm: tag =>
this._autoCompleteControl.replaceSelectedText(
misc.escapeSearchTerm(tag.names[0]), true),
});
this._formNode.addEventListener(
'submit', e => this._evtFormSubmit(e));
}
}
showSuccess(text) {