]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show specific empty message for tag input fields 2106/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 14 Nov 2016 10:46:21 +0000 (11:46 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 14 Nov 2016 10:46:21 +0000 (11:46 +0100)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/systemtags/js/systemtagsfilelist.js
core/js/systemtags/systemtagsinputfield.js

index 56838018a2cafff857377cf789c3f94f0360cc0f..25f377785b77bcfc34f7dc21d527b61dbcf5a4e9 100644 (file)
                                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));
index 2eb8d0a44cb2673092a43c45c53cbec1bb73398c..5d986d172903c2c659390a560fb442e6f195c564 100644 (file)
                                                return 1;
                                        });
                                        return results;
+                               },
+                               formatNoMatches: function() {
+                                       return t('core', 'No tags found');
                                }
                        })
                                .on('select2-selecting', this._onSelectTag)