commit/galaxy-central: jgoecks: Use galaxy_config.root for history URLs to support URL rewriting.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/5d138db3d1e5/ Changeset: 5d138db3d1e5 User: jgoecks Date: 2013-10-23 18:11:58 Summary: Use galaxy_config.root for history URLs to support URL rewriting. Affected #: 1 file diff -r 06d5abc6d40748a41493d2beac87fc1cb81f5bf6 -r 5d138db3d1e52e364fd3c69c321ea44bac8373eb static/scripts/mvc/history/history-model.js --- a/static/scripts/mvc/history/history-model.js +++ b/static/scripts/mvc/history/history-model.js @@ -31,23 +31,23 @@ }, // ........................................................................ urls - urlRoot: 'api/histories', + urlRoot: galaxy_config.root + 'api/histories', renameUrl : function(){ //TODO: just use this.save() var id = this.get( 'id' ); if( !id ){ return undefined; } - return '/history/rename_async?id=' + this.get( 'id' ); + return galaxy_config.root + 'history/rename_async?id=' + this.get( 'id' ); }, annotateUrl : function(){ var id = this.get( 'id' ); if( !id ){ return undefined; } - return '/history/annotate_async?id=' + this.get( 'id' ); + return galaxy_config.root + 'history/annotate_async?id=' + this.get( 'id' ); }, tagUrl : function(){ var id = this.get( 'id' ); if( !id ){ return undefined; } - return '/tag/get_tagging_elt_async?item_id=' + this.get( 'id' ) + '&item_class=History'; + return galaxy_config.root + 'tag/get_tagging_elt_async?item_id=' + this.get( 'id' ) + '&item_class=History'; }, // ........................................................................ set up/tear down @@ -276,7 +276,7 @@ var HistoryCollection = Backbone.Collection.extend( LoggableMixin ).extend( /** @lends HistoryCollection.prototype */{ model : History, - urlRoot : 'api/histories' + urlRoot : galaxy_config.root + 'api/histories' ///** logger used to record this.log messages, commonly set to console */ //// comment this out to suppress log output 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