commit/galaxy-central: jgoecks: Trackster: default to datasets in current history when adding tracks.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/4a9d57a68f91/ changeset: 4a9d57a68f91 user: jgoecks date: 2011-12-02 18:32:14 summary: Trackster: default to datasets in current history when adding tracks. affected #: 2 files diff -r da1ccd08865963c99a55b621af481023b61e3b32 -r 4a9d57a68f91b17fa47b8e5b73e54b6bdcbc912d lib/galaxy/web/controllers/tracks.py --- a/lib/galaxy/web/controllers/tracks.py +++ b/lib/galaxy/web/controllers/tracks.py @@ -735,6 +735,15 @@ return self.histories_grid( trans, **kwargs ) @web.expose + @web.require_login( "see current history's datasets that can added to this visualization" ) + def list_current_history_datasets( self, trans, **kwargs ): + """ List a history's datasets that can be added to a visualization. """ + + kwargs[ 'f-history' ] = trans.security.encode_id( trans.get_history().id ) + kwargs[ 'show_item_checkboxes' ] = 'True' + return self.list_history_datasets( trans, **kwargs ) + + @web.expose @web.require_login( "see a history's datasets that can added to this visualization" ) def list_history_datasets( self, trans, **kwargs ): """List a history's datasets that can be added to a visualization.""" diff -r da1ccd08865963c99a55b621af481023b61e3b32 -r 4a9d57a68f91b17fa47b8e5b73e54b6bdcbc912d templates/tracks/browser.mako --- a/templates/tracks/browser.mako +++ b/templates/tracks/browser.mako @@ -63,7 +63,7 @@ */ var add_tracks = function() { $.ajax({ - url: "${h.url_for( action='list_histories' )}", + url: "${h.url_for( action='list_current_history_datasets' )}", data: { "f-dbkey": view.dbkey }, error: function() { alert( "Grid failed" ); }, success: function(table_html) { 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)
-
Bitbucket