Merge pull request #2106 from nextcloud/proper-empty-message-for-tags

Show specific empty message for tag input fields
This commit is contained in:
Morris Jobke 2016-11-14 14:02:07 +01:00 committed by GitHub
commit cebb689925
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)