]> source.dussan.org Git - archiva.git/commitdiff
fix auto complete with jquery 1.8
authorOlivier Lamy <olamy@apache.org>
Wed, 22 Aug 2012 15:12:35 +0000 (15:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 22 Aug 2012 15:12:35 +0000 (15:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1376094 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main-tmpl.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/jquery-ui-1.8.16.custom.min.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/redback-tmpl.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/search.html

index 44a741e93f0744f5a4770a2d811ad52c8168cf5d..4764863f366a633445881de770e3cc2deaeb5131 100644 (file)
  * specific language governing permissions and limitations
  * under the License.
  */
-define("archiva.templates",["text!templates/archiva/menu.html",
+define("archiva.templates",["jquery.tmpl","utils","text!templates/archiva/menu.html",
           "text!templates/archiva/generics.html",
           "text!templates/archiva/modal.html",
           "text!templates/archiva/repositories.html",
           "text!templates/archiva/search.html",
-          "text!templates/archiva/general-admin.html",
-          "jquery.tmpl","utils"],
-  function(menu,generics,modal,repositories,
+          "text!templates/archiva/general-admin.html"],
+  function(jqueryTmpl,utils,menu,generics,modal,repositories,
            search,general_admin) {
 
     var htmlFragment=$("#html-fragments");
index 8af4596e9cf957df64037fff66de89188fbd9bcb..9f83a72f119b6b0749fa5f7bedb149ca8e64594c 100755 (executable)
@@ -6466,7 +6466,8 @@ $.widget( "ui.autocomplete", {
                        })
                        .zIndex( this.element.zIndex() + 1 )
                        // workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781
-                       .css({ top: 0, left: 0 })
+      // modified for top
+                       .css({ top: $(this.element).offset().top+$(this.element ).height(), left: 0 })
                        .hide()
                        .data( "menu" );
                if ( $.fn.bgiframe ) {
index 6e20cb492e337adf463848f576be7008b21ae62d..a177bc16c73187d8eb3e362d508b5cddeedbe294 100644 (file)
  * specific language governing permissions and limitations
  * under the License.
  */
-define("redback.templates",["text!templates/redback/user-edit.html",
-          "text!templates/redback/login.html",
-          "jquery.tmpl","utils"],
-    function(useredit, login) {
+define("redback.templates",["jquery.tmpl","utils","text!templates/redback/user-edit.html",
+          "text!templates/redback/login.html"],
+    function(jqueryTmpl,utils,useredit, login) {
 
       var htmlFragment=$("#html-fragments");
 
index 767b449c46d0c09ae2e0b44990683c2e0b1c6153..eec0b635e9ee6180dc48e10feb0da426ddc75b23 100644 (file)
@@ -88,7 +88,7 @@
       {{if number>0}}
         <span class="divider" id="browse-autocomplete-divider">/</span>
       {{/if}}
-        <input type="text" class="search-query input-large" size="50" id="browse-autocomplete"/>
+        <input type="text" class="input-large" size="50" id="browse-autocomplete"/>
     </li>
   </ul>