improved tag auto-completion and added tag management (#1083)

This commit is contained in:
Kevin Papst
2019-09-04 23:47:33 +02:00
committed by GitHub
parent 3ea05cb705
commit d041a3f4f9
25 changed files with 368 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ export default class KimaiAutocomplete extends KimaiPlugin {
}
init() {
this.minChars = this.getContainer().getConfiguration().get('autoComplete');
this.activateAutocomplete(this.selector);
}
@@ -59,7 +60,7 @@ export default class KimaiAutocomplete extends KimaiPlugin {
search: function () {
// custom minLength
var term = self.extractLastTag(this.value);
if (term.length < 2) {
if (term.length < self.minChars) {
return false;
}
},