Merge pull request #2106 from nextcloud/proper-empty-message-for-tags
Show specific empty message for tag input fields
This commit is contained in:
commit
cebb689925
|
@ -115,6 +115,9 @@
|
||||||
escapeMarkup: function(m) {
|
escapeMarkup: function(m) {
|
||||||
// prevent double markup escape
|
// prevent double markup escape
|
||||||
return m;
|
return m;
|
||||||
|
},
|
||||||
|
formatNoMatches: function() {
|
||||||
|
return t('systemtags', 'No tags found');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.$filterField.on('change', _.bind(this._onTagsChanged, this));
|
this.$filterField.on('change', _.bind(this._onTagsChanged, this));
|
||||||
|
|
|
@ -408,6 +408,9 @@
|
||||||
return 1;
|
return 1;
|
||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
|
},
|
||||||
|
formatNoMatches: function() {
|
||||||
|
return t('core', 'No tags found');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.on('select2-selecting', this._onSelectTag)
|
.on('select2-selecting', this._onSelectTag)
|
||||||
|
|
Loading…
Reference in New Issue