diff --git a/lib/galaxy/web/framework/helpers/grids.py b/lib/galaxy/web/framework/helpers/grids.py index 1e3ee4bac04..16934753d65 100644 --- a/lib/galaxy/web/framework/helpers/grids.py +++ b/lib/galaxy/web/framework/helpers/grids.py @@ -339,7 +339,8 @@ class Grid( object ): 'default_filter_dict' : self.default_filter, 'advanced_search' : self.advanced_search, 'info_text' : self.info_text, - 'url' : url(dict()) + 'url' : url(dict()), + 'refresh_frames' : kwargs.get( 'refresh_frames', [] ) } if current_item: grid_config['current_item_id'] = current_item.id diff --git a/lib/galaxy/webapps/galaxy/controllers/dataset.py b/lib/galaxy/webapps/galaxy/controllers/dataset.py index 961ad7912d6..5311846df3a 100644 --- a/lib/galaxy/webapps/galaxy/controllers/dataset.py +++ b/lib/galaxy/webapps/galaxy/controllers/dataset.py @@ -502,7 +502,7 @@ class DatasetInterface( BaseUIController, UsesAnnotations, UsesItemRatings, Uses status, message = trans.webapp.controllers['history']._list_switch( trans, histories ) # Current history changed, refresh history frame; if switching to a dataset, set hda seek. - trans.template_context['refresh_frames'] = ['history'] + kwargs['refresh_frames'] = ['history'] if operation == "switch": hda_ids = [ trans.security.encode_id( hda.id ) for hda in hdas ] trans.template_context[ 'seek_hda_ids' ] = hda_ids @@ -518,7 +518,7 @@ class DatasetInterface( BaseUIController, UsesAnnotations, UsesItemRatings, Uses status, message = self._copy_datasets( trans, hda_ids, target_histories ) # Current history changed, refresh history frame. - trans.template_context['refresh_frames'] = ['history'] + kwargs['refresh_frames'] = ['history'] # Render the list view kwargs[ 'dict_format' ] = True