[hg] galaxy 2759: minor trackster
details: http://www.bx.psu.edu/hg/galaxy/rev/cbb7103283fe changeset: 2759:cbb7103283fe user: Kanwei Li <kanwei@gmail.com> date: Wed Sep 23 19:11:12 2009 -0400 description: minor trackster 3 file(s) affected in this change: static/scripts/trackster.js templates/tracks/browser.mako templates/tracks/new_browser.mako diffs (59 lines): diff -r 509390d4e719 -r cbb7103283fe static/scripts/trackster.js --- a/static/scripts/trackster.js Wed Sep 23 17:32:16 2009 -0400 +++ b/static/scripts/trackster.js Wed Sep 23 19:11:12 2009 -0400 @@ -67,7 +67,6 @@ this.high = Math.min( this.length, Math.ceil( new_high ) ); }, zoom_in: function ( factor, point ) { - console.log(this.max_high); if (this.max_high == 0) return; var range = this.high - this.low; diff -r 509390d4e719 -r cbb7103283fe templates/tracks/browser.mako --- a/templates/tracks/browser.mako Wed Sep 23 17:32:16 2009 -0400 +++ b/templates/tracks/browser.mako Wed Sep 23 19:11:12 2009 -0400 @@ -99,7 +99,7 @@ }); (function () { $.getJSON( "${h.url_for( action='chroms' )}", { dbkey: "${dbkey}" }, function ( data ) { - var chrom_options = '<option value=""></option>'; + var chrom_options = '<option value="">Select Chrom/Contig</option>'; for (i in data) { chrom = data[i]['chrom'] if( chrom == view.chrom ) { @@ -133,18 +133,15 @@ <div id="nav-labeltrack"></div> <div id="nav-controls"> <form name="chr" id="chr" method="get"> + <select id="chrom" name="chrom"> + <option value="">Loading</option> + </select> <input type="hidden" name="dataset_ids" value="${dataset_ids}" /> <a href="#" onclick="javascript:view.left(5);view.redraw();"><<</a> <a href="#" onclick="javascript:view.left(2);view.redraw();"><</a> - <select id="chrom" name="chrom"> - <option value="">Loading</option> - </select> <span id="low">0</span>—<span id="high">${LEN}</span> - <span style="display: inline-block; width: 10em;"> - <a href="#" onclick="javascript:view.zoom_in(2);view.redraw();">+</a> - <a href="#" onclick="javascript:view.zoom_out(2);view.redraw();">-</a> - </span> - + <a href="#" onclick="javascript:view.zoom_in(2);view.redraw();">+</a> + <a href="#" onclick="javascript:view.zoom_out(2);view.redraw();">-</a> <a href="#" onclick="javascript:view.right(2);view.redraw();">></a> <a href="#" onclick="javascript:view.right(5);view.redraw();">>></a> </form> diff -r 509390d4e719 -r cbb7103283fe templates/tracks/new_browser.mako --- a/templates/tracks/new_browser.mako Wed Sep 23 17:32:16 2009 -0400 +++ b/templates/tracks/new_browser.mako Wed Sep 23 19:11:12 2009 -0400 @@ -22,7 +22,7 @@ %for tmp_dbkey in dbkey_set: <option value="${tmp_dbkey}" %if tmp_dbkey == dbkey: - selected="true" + selected="selected" %endif >${tmp_dbkey}</option> %endfor
participants (1)
-
Nate Coraor