diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css b/tools/droiddoc/templates-sdk/assets/css/default.css index 0a80d21cf..75f5a6b59 100644 --- a/tools/droiddoc/templates-sdk/assets/css/default.css +++ b/tools/droiddoc/templates-sdk/assets/css/default.css @@ -2901,10 +2901,6 @@ ul#search_filtered { /* SEARCH RESULTS */ -/* disable twiddle and size selectors for left column */ -#leftSearchControl div { - padding:0; -} #leftSearchControl .gsc-twiddle { background-image : none; @@ -3605,11 +3601,11 @@ a.download-sdk { #searchResults.wrap { max-width:940px; border-bottom:1px solid #CCC; - min-height:34px; - } - +#searchResults.wrap #leftSearchControl { + min-height:700px +} .nav-x { margin-left:0; margin-bottom:0; diff --git a/tools/droiddoc/templates-sdk/assets/js/search_autocomplete.js b/tools/droiddoc/templates-sdk/assets/js/search_autocomplete.js index 6b1e525ac..bfd0eaed4 100644 --- a/tools/droiddoc/templates-sdk/assets/js/search_autocomplete.js +++ b/tools/droiddoc/templates-sdk/assets/js/search_autocomplete.js @@ -1,82 +1,12 @@ -/** - * jQuery history event v0.1 - * Copyright (c) 2008 Tom Rodenberg - * Licensed under the GPL (http://www.gnu.org/licenses/gpl.html) license. +/* + * jQuery hashchange event - v1.3 - 7/21/2010 + * http://benalman.com/projects/jquery-hashchange-plugin/ + * + * Copyright (c) 2010 "Cowboy" Ben Alman + * Dual licensed under the MIT and GPL licenses. + * http://benalman.com/about/license/ */ -(function($) { - var currentHash, previousNav, timer, hashTrim = /^.*#/; - - var msie = { - iframe: null, - getDoc: function() { - return msie.iframe.contentWindow.document; - }, - getHash: function() { - return msie.getDoc().location.hash; - }, - setHash: function(hash) { - var d = msie.getDoc(); - d.open(); - d.close(); - d.location.hash = hash; - } - }; - - var historycheck = function() { - var hash = msie.iframe ? msie.getHash() : location.hash; - if (hash != currentHash) { - currentHash = hash; - if (msie.iframe) { - location.hash = currentHash; - } - var current = $.history.getCurrent(); - $.event.trigger('history', [current, previousNav]); - previousNav = current; - } - }; - - $.history = { - add: function(hash) { - hash = '#' + hash.replace(hashTrim, ''); - if (currentHash != hash) { - var previous = $.history.getCurrent(); - location.hash = currentHash = hash; - if (msie.iframe) { - msie.setHash(currentHash); - } - $.event.trigger('historyadd', [$.history.getCurrent(), previous]); - } - if (!timer) { - timer = setInterval(historycheck, 100); - } - }, - getCurrent: function() { - if (currentHash) { - return currentHash.replace(hashTrim, ''); - } else { - return ""; - } - } - }; - - $.fn.history = function(fn) { - $(this).bind('history', fn); - }; - - $.fn.historyadd = function(fn) { - $(this).bind('historyadd', fn); - }; - - $(function() { - currentHash = location.hash; - if ($.browser.msie) { - msie.iframe = $('') - .prependTo('body')[0]; - msie.setHash(currentHash); - currentHash = msie.getHash(); - } - }); -})(jQuery); +(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('