mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Merge pull request #5237 from martenson/fix-image-proxy-prefix
[17.05] fix image proxy prefix in tool form
This commit is contained in:
@@ -268,6 +268,12 @@ define( [ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view
|
||||
_templateHelp: function( options ) {
|
||||
var $tmpl = $( '<div/>' ).addClass( 'ui-form-help' ).append( options.help );
|
||||
$tmpl.find( 'a' ).attr( 'target', '_blank' );
|
||||
$tmpl.find("img").each( function() {
|
||||
var img_src = $(this).attr("src");
|
||||
if (img_src.indexOf("admin_toolshed") !== -1){
|
||||
$(this).attr("src", Galaxy.root + img_src);
|
||||
}
|
||||
});
|
||||
return $tmpl;
|
||||
},
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user