]> source.dussan.org Git - archiva.git/commitdiff
fix issue with typeahead
authorOlivier Lamy <olamy@apache.org>
Tue, 14 Jan 2014 05:27:18 +0000 (05:27 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 14 Jan 2014 05:27:18 +0000 (05:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1557935 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/MavenRepositorySearch.java
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/index.html
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/archiva.js
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/generics.html
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/menu.html

index 554208cc3d013c3b3fc38bcfb3ca69b9b1a4327c..45b5db0cc4e0e961eeebd044127ba82e8cea884e 100644 (file)
@@ -261,6 +261,7 @@ public class MavenRepositorySearch
         try
         {
             FlatSearchRequest request = new FlatSearchRequest( q );
+
             request.setContexts( getIndexingContexts( indexingContextIds ) );
 
             FlatSearchResponse response = indexer.searchFlat( request );
index 9a91bd1b6e5d1c913810602a31dc78bc35b47312..dc13280c6834627cd5746872d6585abfc7437a4b 100644 (file)
@@ -34,7 +34,7 @@
 
 
     <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
-    <script type="text/javascript" src="js/jquery-ui-1.9.2.custom.min.js"></script>
+    <script type="text/javascript" src="js/jquery-ui-1.10.3.custom.min.js"></script>
     <script type="text/javascript" src="js/sammy.0.7.4.js"></script>
     <script type="text/javascript" data-main="js/archiva/archiva.js" src="js/require.min.2.1.9.js"></script>
 
index 79dd9e8b94575211709796a113bb2d988830a85f..4283b2407d930c2a9e30e3570c67ca201295d0c9 100644 (file)
@@ -62,7 +62,7 @@ $.ajax({
               "jquery.tmpl": "jquery.tmpl",
               "utils": "archiva/utils",
               "startup": "archiva/startup",
-              "jquery.ui": "jquery-ui-1.9.2.custom.min",
+              "jquery.ui": "jquery-ui-1.10.3.custom.min",
               "jquery.ui.widget": "jquery.ui.widget-1.9.2",
               "jquery.cookie": "jquery.cookie.1.0.0",
               "bootstrap": "bootstrap.2.2.2",
index 29473a3d810d6b082f736a0d9e871195fa94e1d8..c6cbbc6942695086443fbb351bf51df5d70c0355 100644 (file)
@@ -883,7 +883,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
           name: 'quick-search-result',
           remote: 'restServices/archivaServices/searchService/quickSearch?queryString=%QUERY',
           valueKey: 'artifactId',
-          maxParallelRequests:1,
+          maxParallelRequests:0,
           limit: 50
         }
     );
index 6cd30d173e6ce6322d055a7c7d83afcc6fe499ef..118265db8eac892504fff83ab4aa5be3cdb69e84 100644 (file)
@@ -77,7 +77,7 @@
       <h5>${$.i18n.prop('welcome.quick.search')}</h5>
       <span class="span2"></span>
         <form class="form-search">
-        <input type="text" class="search-query" id="quick-search-autocomplete-welcome"
+        <input type="text" class="twitter-typeahead" id="quick-search-autocomplete-welcome"
                placeholder="${$.i18n.prop('menu.topbar.quicksearch')}"/>
         </form>
     </div>
index f21d01143c5524a4c1f81776a9668ecc6f8a357c..df8c42e4ac69390551b220d1ddda2f9c8018a671 100644 (file)
               </a>
             </li>
             <li>
-              <div class="ui-widget navbar-search">
-                <input type="text" class="ui-autocomplete-input search-query" id="quick-search-autocomplete"
+              <div class="navbar-search">
+                <input type="text" class="twitter-typeahead" id="quick-search-autocomplete"
                        placeholder="${$.i18n.prop('menu.topbar.quicksearch')}"/>
               </div>
             </li>