]> source.dussan.org Git - archiva.git/commitdiff
placeholder with i18n for quick search with autocomplete
authorOlivier Lamy <olamy@apache.org>
Mon, 5 Mar 2012 15:25:08 +0000 (15:25 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 5 Mar 2012 15:25:08 +0000 (15:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1297085 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/topbar.html

index 7c5a437636aec06ba2fe79adfe4838baa9394ce9..96e00d01725e56500177bb3729dae2af5e88da73 100644 (file)
@@ -126,6 +126,7 @@ menu.repository.groups=Repository Groups
 menu.artifacts=Artifacts
 menu.artifacts.search=Search
 menu.artifacts.browse=Browse
+menu.topbar.quicksearch=Quick Search
 
 #user
 user.change.password.required=Change password required
index dde707ba187befefe24fce36bba2605b97302bf3..9db28f811a2b8b9cda09eac4598afd6d65cafcd2 100644 (file)
@@ -228,6 +228,7 @@ $(function() {
       },
       select: function( event, ui ) {
         $.log("select artifactId:"+ui.item.artifactId);
+        // user can be in a non search view so init the search view first
         displaySearch(function(){
           var searchViewModel = new SearchViewModel();
           var searchRequest = new SearchRequest();
index 7586804057211e7850d2dd3329d8856aff43d9cd..16ee84e40cef01bd41c515b5c8532397c150b6be 100644 (file)
@@ -49,7 +49,8 @@
         </li>
         <li class="pull-right">
           <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>
         </li>
       </ul>