Permalink
Browse files

Minified version

  • Loading branch information...
1 parent cfeadc0 commit 2e77b38dbf68c8a469a4163236a5e737f1a26c28 @samuelcotterall committed Nov 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.touchdown.min.js
@@ -1 +1 @@
-(function(a){a.fn.Touchdown=function(){return this.each(function(){$this=a(this);var b=$this.parents().length,c=$this.find("a"),d="Select",e;if($this.attr("title")){d=$this.attr("title")}e+='<option value="">'+d+"</option>";for(var f=0;f<c.length;f++){var g=a(c[f]),h=(g.parents().length-b)/2-1,i="";while(h>0){i+="  ";h--}e+='<option value="'+g.attr("href")+'">'+i+g.text()+"</option>"}$this.addClass("touchdown-list").after('<select class="touchdown"> '+e+"</select>");$this.next("select").change(function(){window.location=a(this).val()})})}})(jQuery)
+(function(a){a.fn.Touchdown=function(){return this.each(function(){$this=a(this);var b=$this.parents().length,c=$this.find("a"),d="Navigate",e;if($this.attr("title")){d=$this.attr("title")}e+='<option value="">'+d+"</option>";for(var f=0;f<c.length;f++){var g=a(c[f]),h=(g.parents().length-b)/2-1,i="";while(h>0){i+="  ";h--}e+='<option value="'+g.attr("href")+'">'+i+g.text()+"</option>"}$this.addClass("touchdown-list").after('<select class="touchdown"> '+e+"</select>");$this.next("select").change(function(){window.location=a(this).val()})})}})(jQuery)

0 comments on commit 2e77b38

Please sign in to comment.