commit/galaxy-central: carlfeberhard: historyPanel: temp fix for 2 line tooltips when placement = 'above'
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/63cd6402bada/ changeset: 63cd6402bada user: carlfeberhard date: 2012-09-11 17:46:15 summary: historyPanel: temp fix for 2 line tooltips when placement = 'above' affected #: 1 file diff -r 6568368038dc220ce1f66d5566570f32633055d9 -r 63cd6402badaf98f26080e71b1f0ed49db30e3ab templates/root/history.mako --- a/templates/root/history.mako +++ b/templates/root/history.mako @@ -45,7 +45,7 @@ error: function() { alert( "Tagging failed" ) }, success: function(tag_elt_html) { tag_elt.html(tag_elt_html); - tag_elt.find(".tooltip").tooltip(); + tag_elt.find(".tooltip").tooltip({ placement : 'bottom' }); tag_area.slideDown("fast"); } }); @@ -86,7 +86,7 @@ annotation = "<em>Describe or add notes to dataset</em>"; } annotation_elt.html(annotation); - annotation_area.find(".tooltip").tooltip(); + annotation_area.find(".tooltip").tooltip({ placement : 'bottom' }); async_save_text( annotation_elt.attr("id"), annotation_elt.attr("id"), "${h.url_for( controller='/dataset', action='annotate_async')}?" + href_parms, @@ -229,6 +229,25 @@ tag_handling(this); annotation_handling(this); + + //TODO: hack (github has an issue on this - see how it's resolved) + // fix for two line bootstrap tooltips when placement: above + $( this ).find( '.tooltip' ).each( function(){ + console.debug( 'tooltip:', this ); + var $this = $( this ); + + // documented method - that doesn't seem to work + //$( this ).tooltip( 'destroy' ); + + $this.data( 'tooltip', false ); + var title = $this.attr( 'data-original-title' ); + $this.attr( 'data-original-title', null ); + $this.attr( 'title', title ); + + // place them on the bottom for now + $this.tooltip({ placement : 'bottom' }); + }); + }); // Trackster links 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