mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
implement more restrictive selector, use jquery each isntead of _
thanks to jmchilton and dannon
This commit is contained in:
@@ -268,8 +268,11 @@ 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' );
|
||||
_.each($tmpl.find("img"), function(img) {
|
||||
$(img).attr("src", Galaxy.root + $(img).attr("src"));
|
||||
$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