mirror of https://github.com/apache/archiva.git
placeholder with i18n for quick search with autocomplete
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1297085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e691d1682
commit
e687359ab4
|
@ -126,6 +126,7 @@ menu.repository.groups=Repository Groups
|
||||||
menu.artifacts=Artifacts
|
menu.artifacts=Artifacts
|
||||||
menu.artifacts.search=Search
|
menu.artifacts.search=Search
|
||||||
menu.artifacts.browse=Browse
|
menu.artifacts.browse=Browse
|
||||||
|
menu.topbar.quicksearch=Quick Search
|
||||||
|
|
||||||
#user
|
#user
|
||||||
user.change.password.required=Change password required
|
user.change.password.required=Change password required
|
||||||
|
|
|
@ -228,6 +228,7 @@ $(function() {
|
||||||
},
|
},
|
||||||
select: function( event, ui ) {
|
select: function( event, ui ) {
|
||||||
$.log("select artifactId:"+ui.item.artifactId);
|
$.log("select artifactId:"+ui.item.artifactId);
|
||||||
|
// user can be in a non search view so init the search view first
|
||||||
displaySearch(function(){
|
displaySearch(function(){
|
||||||
var searchViewModel = new SearchViewModel();
|
var searchViewModel = new SearchViewModel();
|
||||||
var searchRequest = new SearchRequest();
|
var searchRequest = new SearchRequest();
|
||||||
|
|
|
@ -49,7 +49,8 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<div class="ui-widget">
|
<div class="ui-widget">
|
||||||
<input type="text" class="ui-autocomplete-input" id="quick-search-autocomplete" placeholder="Search" />
|
<input type="text" class="ui-autocomplete-input" id="quick-search-autocomplete"
|
||||||
|
placeholder="${$.i18n.prop('menu.topbar.quicksearch')}" />
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue