1 new changeset in galaxy-central:
http://bitbucket.org/galaxy/galaxy-central/changeset/48d1f796acd4/
changeset: r5009:48d1f796acd4
user: james_taylor
date: 2011-02-06 16:27:53
summary: trackster: color picker shows on click, not hover, and below the input element
affected #: 1 file (215 bytes)
--- a/static/scripts/trackster.js Sun Feb 06 02:21:10 2011 -0500
+++ b/static/scripts/trackster.js Sun Feb 06 10:27:53 2011 -0500
@@ -863,18 +863,21 @@
var value = track_config.values[ param.key ];
var input = $('<input />').attr("id", id ).attr("name", id ).val( value );
// Color picker in tool tip style float
- var tip = $( "<div class='tipsy tipsy-west' style='position: absolute;' />" )
+ var tip = $( "<div class='tipsy tipsy-north' style='position: absolute;' />" )
.append( $("<div class='tipsy-inner' />")
.farbtastic( { width: 100, height: 100, callback: input, color: value } ) )
.hide();
// Outer div container input and tip for hover to work
- $("<div />").append( input ).append( tip ).appendTo( row ).hover( function () {
+ $("<div />").append( input ).append( tip ).appendTo( row ).bind( "click", function ( e ) {
tip.css( {
- left: $(this).position().left + $(input).width() - 20,
- top: $(this).position().top - 50
- } ).show();
- }, function () {
- tip.hide();
+ left: $(this).position().left + ( $(input).width() / 2 ) - 60,
+ top: $(this).position().top + $(this.height)
+ } ).show();
+ $(document).bind( "click.color-picker", function() {
+ tip.hide();
+ $(document).unbind( "click.color-picker" );
+ });
+ e.stopPropagation();
} );
} else {
row.append( $('<input />').attr("id", id ).attr("name", id ).val( track_config.values[ param.key ] ) );
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.
1 new changeset in galaxy-central:
http://bitbucket.org/galaxy/galaxy-central/changeset/538ca7438a8a/
changeset: r5000:538ca7438a8a
user: kanwei
date: 2011-02-05 03:02:23
summary: trackster: Fix infinite data query loop when chrom is null or 'None'
affected #: 1 file (203 bytes)
--- a/static/scripts/trackster.js Fri Feb 04 16:16:00 2011 -0500
+++ b/static/scripts/trackster.js Fri Feb 04 21:02:23 2011 -0500
@@ -466,6 +466,12 @@
},
change_chrom: function(chrom, low, high) {
+
+ // Don't do anything if chrom is "None" (hackish but some browsers already have this set), or null/blank
+ if (!chrom || chrom === "None") {
+ return;
+ }
+
var view = this;
//
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.
1 new changeset in galaxy-central:
http://bitbucket.org/galaxy/galaxy-central/changeset/046e456f2c5b/
changeset: r4998:046e456f2c5b
user: james_taylor
date: 2011-02-04 20:48:39
summary: trackster: fix for track height calculation
affected #: 1 file (12 bytes)
--- a/static/scripts/trackster.js Fri Feb 04 14:49:23 2011 -0500
+++ b/static/scripts/trackster.js Fri Feb 04 14:48:39 2011 -0500
@@ -1406,7 +1406,7 @@
if (this.left_offset) {
left -= this.left_offset;
}
- tile_element.css({ position: 'absolute', top: 0, left: left });
+ tile_element.css({ position: 'absolute', top: 0, left: left, height: '' });
// Setup and show tile element.
parent_element.append( tile_element );
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.