mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
The jobs API, which this functionality is based on, requires a logged in user, so prevent anonymous access here. Also shifts to using Galaxy.root correctly, instead of assuming /
This commit is contained in:
@@ -144,14 +144,16 @@ var DatasetListItemEdit = _super.extend(
|
||||
};
|
||||
var parseToolID = function(data) {
|
||||
$.ajax({
|
||||
url: '/api/tools/' + data.tool_id + '/build'
|
||||
url: Galaxy.root + 'api/tools/' + data.tool_id + '/build'
|
||||
}).done(function(data){
|
||||
parseToolBuild(data);
|
||||
}).fail(function(){
|
||||
parseToolBuild({})
|
||||
});
|
||||
};
|
||||
|
||||
if (Galaxy.user.id === null){
|
||||
return null
|
||||
}
|
||||
return faIconButton({
|
||||
title: 'Tool Help',
|
||||
classes: 'icon-btn',
|
||||
@@ -163,11 +165,11 @@ var DatasetListItemEdit = _super.extend(
|
||||
self.$el.find(".toolhelp").toggle();
|
||||
} else {
|
||||
$.ajax({
|
||||
url: '/api/jobs/' + jobID
|
||||
url: Galaxy.root + 'api/jobs/' + jobID
|
||||
}).done(function(data){
|
||||
parseToolID(data);
|
||||
}).fail(function(){
|
||||
console.log('Failed on recovering /api/jobs/' + jobID + ' call.');
|
||||
console.log('Failed at recovering job information from the Galaxy API for job id "' + jobID + '".');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
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