commit/galaxy-central: kanwei: trackster: Indicator when drag-reordering tracks. Fix Y-axis label being too high
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/c119abcbcdac/ changeset: r5507:c119abcbcdac user: kanwei date: 2011-05-06 20:32:55 summary: trackster: Indicator when drag-reordering tracks. Fix Y-axis label being too high affected #: 1 file (228 bytes) --- a/static/scripts/trackster.js Fri May 06 13:44:21 2011 -0400 +++ b/static/scripts/trackster.js Fri May 06 14:32:55 2011 -0400 @@ -146,13 +146,20 @@ // to handle the end specially since we don't have // insert at index if ( i === children.length ) { - if ( this !== children.get( i - 1 ) ) { - parent.append( this ); + if ( this !== children.get(i - 1) ) { + parent.append(this); } } - else if ( this !== children.get( i ) ) { - $(this).insertBefore( children.get( i ) ); + else if ( this !== children.get(i) ) { + $(this).insertBefore( children.get(i) ); } + }).bind("dragstart", function() { + $(this).css({ + "border-top": "1px solid blue", + "border-bottom": "1px solid blue" + }); + }).bind("dragend", function() { + $(this).css("border", "0px"); }); }; exports.sortable = sortable; @@ -2428,7 +2435,7 @@ this.container_div.find(".yaxislabel").remove(); var max_label = $("<div />").addClass('yaxislabel'); max_label.text( result.max ); - max_label.css({ position: "absolute", top: "22px", left: "10px", color: this.prefs.label_color }); + max_label.css({ position: "absolute", top: "24px", left: "10px", color: this.prefs.label_color }); max_label.prependTo(this.container_div); // Create canvas var canvas = this.view.canvas_manager.new_canvas(); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket