diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-01-15 13:50:49 -0500 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-01-15 13:50:49 -0500 |
| commit | d542c7f4476b14d6a0fa2c1089ed6ff1fe8da5dc (patch) | |
| tree | 6193d5f004d52aa24ad2040f8bf7a03ac6dc526d /static/search/all.js | |
| parent | ad22a53236804ee564f85b11cba4890e0ad9ae88 (diff) | |
Commit
Diffstat (limited to 'static/search/all.js')
| -rwxr-xr-x | static/search/all.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/static/search/all.js b/static/search/all.js new file mode 100755 index 0000000..233a5a9 --- /dev/null +++ b/static/search/all.js @@ -0,0 +1 @@ +$(document).ready(function(){var $desc=$('#description');var dheight=$desc.height();$desc.css('height','0').hide();var about=$('a#about').text();$('a#about').bind('click',function(){if($desc.is(':visible')){closeDesc()}else{$desc.show().animate({height:dheight},{duration:500});$('a#about').text("close")};return false});function closeDesc(){$desc.animate({height:0},{duration:500,complete:function(){$desc.fadeOut(function(){$(this).css('display','none');$('a#about').text(about)})}})};$('a.closeinfo').bind('click',function(){closeDesc()});$('a#notecount').bind('click',function(){$('.notes').toggle()});var $searchBox=$('#search input[type="text"]');var searchDefault='Search';$searchBox.val(searchDefault);$searchBox.focus(function(){if($(this).attr("value")==searchDefault)$(this).attr("value","");$(this).addClass("focus")});$searchBox.blur(function(){if($(this).attr("value")=="")$(this).attr("value",searchDefault);$(this).removeClass("focus")});$('#wrapper a:not(.popupwindow)').filter(function(){var theHref=this;if(theHref.hostname&&theHref.hostname!==location.hostname){$(theHref).not(".noAutoIcon").addClass("offSite");$(theHref).not(".noAutoLink").attr('target','_blank').bind('click keypress',function(event){var code=event.charCode||event.keyCode;if(!code||(code&&code==13)){if(pageTracker){var fixedLink=this.href;fixedLink=fixedLink.replace(/https?:\/\/(.*)/,"$1");fixedLink='/outgoing/'+fixedLink;pageTracker._trackPageview(fixedLink)}}})}})});
|
