commit/galaxy-central: jgoecks: Use galaxy_config.root for HDA URLs to support URL rewriting.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7f70f02747d3/ Changeset: 7f70f02747d3 User: jgoecks Date: 2013-10-23 18:31:52 Summary: Use galaxy_config.root for HDA URLs to support URL rewriting. Affected #: 1 file diff -r d3cc9a975d0e9aa1a91fc19ef33c5d3fa53d19fd -r 7f70f02747d374ebf1804a1ae380cb27968043b0 static/scripts/mvc/dataset/hda-model.js --- a/static/scripts/mvc/dataset/hda-model.js +++ b/static/scripts/mvc/dataset/hda-model.js @@ -63,23 +63,23 @@ var id = this.get( 'id' ); if( !id ){ return {}; } var urls = { - 'delete' : '/datasets/' + id + '/delete_async', - 'purge' : '/datasets/' + id + '/purge_async', - 'unhide' : '/datasets/' + id + '/unhide', - 'undelete' : '/datasets/' + id + '/undelete', + 'delete' : galaxy_config.root + 'datasets/' + id + '/delete_async', + 'purge' : galaxy_config.root + 'datasets/' + id + '/purge_async', + 'unhide' : galaxy_config.root + 'datasets/' + id + '/unhide', + 'undelete' : galaxy_config.root + 'datasets/' + id + '/undelete', - 'display' : '/datasets/' + id + '/display/?preview=True', - 'download' : '/datasets/' + id + '/display?to_ext=' + this.get( 'file_ext' ), - 'edit' : '/datasets/' + id + '/edit', - 'report_error': '/dataset/errors?id=' + id, - 'rerun' : '/tool_runner/rerun?id=' + id, - 'show_params': '/datasets/' + id + '/show_params', - 'visualization': '/visualization', + 'display' : galaxy_config.root + 'datasets/' + id + '/display/?preview=True', + 'download' : galaxy_config.root + 'datasets/' + id + '/display?to_ext=' + this.get( 'file_ext' ), + 'edit' : galaxy_config.root + 'datasets/' + id + '/edit', + 'report_error': galaxy_config.root + 'dataset/errors?id=' + id, + 'rerun' : galaxy_config.root + 'tool_runner/rerun?id=' + id, + 'show_params': galaxy_config.root + 'datasets/' + id + '/show_params', + 'visualization': galaxy_config.root + 'visualization', - 'annotation': { 'get': '/dataset/get_annotation_async?id=' + id, - 'set': '/dataset/annotate_async?id=' + id }, - 'tags' : { 'get': '/tag/get_tagging_elt_async?item_id=' + id + '&item_class=HistoryDatasetAssociation', - 'set': '/tag/retag?item_id=' + id + '&item_class=HistoryDatasetAssociation' } + 'annotation': { 'get': galaxy_config.root + 'dataset/get_annotation_async?id=' + id, + 'set': galaxy_config.root + 'dataset/annotate_async?id=' + id }, + 'tags' : { 'get': galaxy_config.root + 'tag/get_tagging_elt_async?item_id=' + id + '&item_class=HistoryDatasetAssociation', + 'set': galaxy_config.root + 'tag/retag?item_id=' + id + '&item_class=HistoryDatasetAssociation' } }; //'meta_download': '/dataset/get_metadata_file?hda_id=%3C%25%3D+id+%25%3E&metadata_name=%3C%25%3D+file_type+%25%3E', var meta_files = this.get( 'meta_files' ); @@ -87,7 +87,7 @@ urls.meta_download = _.map( meta_files, function( meta_file ){ return { //url : _.template( urlTemplate, { id: modelJson.id, file_type: meta_file.file_type }), - url : '/dataset/get_metadata_file?hda_id=' + id + '&metadata_name=' + meta_file.file_type, + url : galaxy_config.root + 'dataset/get_metadata_file?hda_id=' + id + '&metadata_name=' + meta_file.file_type, file_type : meta_file.file_type }; }); @@ -306,7 +306,7 @@ ///** logger used to record this.log messages, commonly set to console */ //// comment this out to suppress log output //logger : console, - urlRoot : '/api/histories', + urlRoot : galaxy_config.root + 'api/histories', url : function(){ return this.urlRoot + '/' + this.historyId + '/contents'; }, 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)
-
commits-noreply@bitbucket.org