Expose tags to the user interface (first prototype)

This commit is contained in:
Frederic Guillot
2016-06-24 15:43:34 -04:00
parent b2e92480c2
commit 18cb7ad0a4
26 changed files with 296 additions and 167 deletions

View File

@@ -35,6 +35,7 @@ Kanboard.App.prototype.execute = function() {
this.keyboardShortcuts();
this.datePicker();
this.autoComplete();
this.tagAutoComplete();
};
Kanboard.App.prototype.keyboardShortcuts = function() {
@@ -131,6 +132,12 @@ Kanboard.App.prototype.datePicker = function() {
});
};
Kanboard.App.prototype.tagAutoComplete = function() {
$(".tag-autocomplete").select2({
tags: true
})
};
Kanboard.App.prototype.autoComplete = function() {
$(".autocomplete").each(function() {
var input = $(this);

View File

@@ -147,4 +147,5 @@ Kanboard.Popover.prototype.afterOpen = function() {
this.app.datePicker();
this.app.autoComplete();
this.app.tagAutoComplete();
};