changed the way the limit search home page feature works so that it will support i18n

This commit is contained in:
tworrall 2013-06-12 15:24:52 -04:00
parent b8308baefc
commit 68875168f7
3 changed files with 11 additions and 6 deletions

View file

@ -839,9 +839,9 @@ a.filter-search {
input.search-homepage {
border: 0;
background-color: #f9fafa;
background: url('../images/limit-search.png') no-repeat;
background-position: right;
opacity: .7;
opacity: .5;
text-align:right;
}
.filter-default {

View file

@ -812,4 +812,4 @@ map_being_refreshed_msg = is now being refreshed. The visualization will load as
publication_pubs = publications (pubs.)
percent_activity = % activity
limit_search = limit search

View file

@ -46,7 +46,7 @@
<div id="search-home-field">
<input type="text" name="querytext" class="search-homepage" value="" autocapitalize="off" />
<input type="submit" value="${i18n().search_button}" class="search" />
<input type="hidden" name="classgroup" class="search-homepage" value="" autocapitalize="off" />
<input type="hidden" name="classgroup" value="" autocapitalize="off" />
</div>
<a class="filter-search filter-default" href="#" title="${i18n().intro_filtersearch}">
@ -85,7 +85,7 @@
<#include "footer.ftl">
<#-- builds a json object that is used by js to render the academic departments section -->
<@lh.listAcademicDepartments />
<script>
<script>
var i18nStrings = {
researcherString: '${i18n().researcher}',
researchersString: '${i18n().researchers}',
@ -102,6 +102,11 @@
viewAllDepartments: '${i18n().view_all_departments}',
noDepartmentsFound: '${i18n().no_departments_found}'
};
</script>
// set the 'limmit search' text and alignment
if ( $('input.search-homepage').css('text-align') == "right" ) {
$('input.search-homepage').attr("value","${i18n().limit_search} \u2192");
}
</script>
</body>
</html>