Prepare backbone route for datasets endpoint

This commit is contained in:
guerler
2017-06-07 08:49:35 -04:00
parent d75cec1603
commit e5010ad8ef
+5
View File
@@ -82,6 +82,7 @@ window.app = function app( options, bootstrapped ){
'(/)user(/)(:form_id)' : 'show_user_form',
'(/)workflow(/)' : 'show_workflows',
'(/)pages(/)(:action_id)' : 'show_pages',
'(/)pages(/)(:action_id)' : 'show_datasets',
'(/)workflow/configure_menu(/)' : 'show_configure_menu',
'(/)custom_builds' : 'show_custom_builds'
},
@@ -117,6 +118,10 @@ window.app = function app( options, bootstrapped ){
this.page.display( new UserPreferences.Forms( { form_id: form_id, user_id: Galaxy.params.id } ) );
},
show_datasets : function() {
this.page.display( new GridView( { url_base: Galaxy.root + 'dataset/list_', dict_format: true } ) );
},
show_pages : function( action_id ) {
this.page.display( new GridView( { url_base: Galaxy.root + 'page/list_published', dict_format: true } ) );
},