Update jquery.uls from upstream

* Conditionally render search placeholder text

Updating to:
27a3270405

Bug: T318633
Change-Id: I5993dcd25f783821fdd63ea05e092144cad99449
This commit is contained in:
wangombe
2023-03-23 10:29:23 +03:00
committed by Abijeet
parent d13b0ff8c8
commit 3710d8d39a
15 changed files with 35 additions and 15 deletions

View File

@@ -174,7 +174,11 @@
i18n: function () {
if ( $.i18n ) {
this.$menu.find( '[data-i18n]' ).i18n();
this.$languageFilter.prop( 'placeholder', $.i18n( 'uls-search-placeholder' ) );
if ( this.getMenuWidth() === 'narrow' ) {
this.$languageFilter.prop( 'placeholder', $.i18n( 'uls-search-placeholder-short' ) );
} else {
this.$languageFilter.prop( 'placeholder', $.i18n( 'uls-search-placeholder' ) );
}
}
},