Do not fail when jquery.i18n is not present

Change-Id: Ieed87c23cac842e8d9f6de54b1d2d4af9586ce4f
This commit is contained in:
Santhosh Thottingal
2012-10-15 19:09:39 +05:30
parent fd492df0c6
commit 983cd129cf

View File

@@ -151,8 +151,10 @@
},
i18n: function() {
this.$menu.find( '[data-i18n]' ).i18n();
this.$languageFilter.prop( 'placeholder', $.i18n( 'uls-search-placeholder' ) );
if ( $.i18n ) {
this.$menu.find( '[data-i18n]' ).i18n();
this.$languageFilter.prop( 'placeholder', $.i18n( 'uls-search-placeholder' ) );
}
},
defaultSearch: function () {