Update jquery.uls to ef6f73b
Changes: * Construct DOM using jQuery instead of an HTML String. * Remove empty translation from de-formal. * Update localisations. * Make magnifying glass icon clickable. Change-Id: I32a54589453039504b1cf89a2b88ef39ef9218fb
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
</div>\
|
||||
<div id="search" class="row uls-search"> \
|
||||
<div class="one column">\
|
||||
<span class="uls-search-label"></span>\
|
||||
<label class="uls-search-label" for="uls-languagefilter"></label>\
|
||||
</div>\
|
||||
<div class="ten columns">\
|
||||
<div id="uls-search-input-block" class="uls-search-input-block">\
|
||||
|
||||
@@ -24,22 +24,25 @@
|
||||
|
||||
var noResultsTemplate, LanguageCategoryDisplay;
|
||||
|
||||
/*jshint multistr:true */
|
||||
noResultsTemplate = '<div class="twelve columns uls-no-results-view hide">\
|
||||
<h2 data-i18n="uls-no-results-found" class="eleven columns offset-by-one uls-no-results-found-title">\
|
||||
No results found\
|
||||
</h2>\
|
||||
<div id="uls-no-found-more" class="uls-no-found-more">\
|
||||
<div class="ten columns offset-by-one">\
|
||||
<p>\
|
||||
<span data-i18n="uls-search-help">You can search by language name, \
|
||||
script name, ISO code of language or \
|
||||
you can browse by region.</span>\
|
||||
</p>\
|
||||
</div>\
|
||||
</div>\
|
||||
</div>';
|
||||
/*jshint multistr:false */
|
||||
noResultsTemplate = $( '<div>' ).addClass( 'twelve columns uls-no-results-view hide' );
|
||||
noResultsTemplate.append(
|
||||
$( '<h2>' )
|
||||
.attr( 'data-i18n', 'uls-no-results-found' )
|
||||
.addClass( 'eleven columns offset-by-one uls-no-results-found-title' )
|
||||
.text( 'No results found' ),
|
||||
$( '<div>' )
|
||||
.attr( 'id', 'uls-no-found-more' )
|
||||
.addClass( 'uls-no-found-more' )
|
||||
.append(
|
||||
$( '<div>' )
|
||||
.addClass( 'ten columns offset-by-one' )
|
||||
.append(
|
||||
$( '<p>' ).append(
|
||||
$( '<span>' ).text( 'You can search by language name, script name, ISO code of language or you can browse by region.' )
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
LanguageCategoryDisplay = function ( element, options ) {
|
||||
this.$element = $( element );
|
||||
|
||||
Reference in New Issue
Block a user