diff --git a/static/scripts/galaxy.base.js b/static/scripts/galaxy.base.js index 1d05a55d7eb..dd25c90686c 100644 --- a/static/scripts/galaxy.base.js +++ b/static/scripts/galaxy.base.js @@ -77,14 +77,12 @@ function make_popupmenu( button_element, options ) { }; function attach_popupmenu( button_element, wrapper ) { - console.log( button_element, wrapper ); var clean = function() { wrapper.unbind().hide(); $("#popup-helper").unbind( "click.popupmenu" ).hide(); // $(document).unbind( "click.popupmenu" ); }; var click = function( e ) { - console.log( e ); var o = $(button_element).offset(); $("#popup-helper").bind( "click.popupmenu", clean ).show(); // $(document).bind( "click.popupmenu", clean ); diff --git a/static/scripts/packed/galaxy.base.js b/static/scripts/packed/galaxy.base.js index 9a0ebee1154..6396e91aa64 100644 --- a/static/scripts/packed/galaxy.base.js +++ b/static/scripts/packed/galaxy.base.js @@ -1 +1 @@ -$.fn.makeAbsolute=function(a){return this.each(function(){var b=$(this);var c=b.position();b.css({position:"absolute",marginLeft:0,marginTop:0,top:c.top,left:c.left,right:$(window).width()-(c.left+b.width())});if(a){b.remove().appendTo("body")}})};jQuery(document).ready(function(){jQuery("a[confirm]").click(function(){return confirm(jQuery(this).attr("confirm"))});jQuery("div[popupmenu]").each(function(){var c={};$(this).find("a").each(function(){var b=$(this).attr("confirm"),d=$(this).attr("href"),e=$(this).attr("target");c[$(this).text()]=function(){if(!b||confirm(b)){var g=window;if(e=="_parent"){g=window.parent}g.location=d}}});var a=$("#"+$(this).attr("popupmenu"));make_popupmenu(a,c);$(this).remove();a.show()})});function ensure_popup_helper(){if($("#popup-helper").length==0){$("
").css({background:"white",opacity:0,zIndex:15000,position:"absolute",top:0,left:0,width:"100%",height:"100%"}).appendTo("body").hide()}}function make_popupmenu(d,c){ensure_popup_helper();var a=$(d);var b=$("