Show specific empty message for tag input fields

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2016-11-14 11:46:21 +01:00
parent 16a110e803
commit b35812fce6
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,9 @@
escapeMarkup: function(m) {
// prevent double markup escape
return m;
},
formatNoMatches: function() {
return t('systemtags', 'No tags found');
}
});
this.$filterField.on('change', _.bind(this._onTagsChanged, this));

View File

@ -408,6 +408,9 @@
return 1;
});
return results;
},
formatNoMatches: function() {
return t('core', 'No tags found');
}
})
.on('select2-selecting', this._onSelectTag)