X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/879e1f31b0165c6abaa35a023ff66400757bb44b..572400db0f322f365e2bf6849ceebc432a69191a:/apps/workbench/app/views/application/_content.html.erb diff --git a/apps/workbench/app/views/application/_content.html.erb b/apps/workbench/app/views/application/_content.html.erb index 494a3ab8ae..1609a66b09 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -1,22 +1,22 @@ -<% content_for :js do %> - function ajaxRefreshTabPane(pane) { - $.ajax('<%= url_for @object %>?tab_pane='+pane, {dataType: 'html', type: 'GET'}). - done(function(data, status, jqxhr) { - $('#' + pane + ' > div > div').html(data); - $(document).trigger('ajax:complete') - }); - } - - $(window).on('load', smart_scroll_fixup); - - $(document).on('shown.bs.tab', 'ul.nav-tabs > li > a', smart_scroll_fixup); - $(document).on('shown.bs.tab', function(e) { - ajaxRefreshTabPane(e.target.id.slice(0, -4)); - }); - - $(document).on('arv-log-event', function() { - ajaxRefreshTabPane($('.tab-pane.active')[0].id); - }); +<% content_for :content_top do %> + <% if @object and not @object.is_a?(Group) and @object.class.goes_in_projects? and @object.owner_uuid == current_user.uuid and not @name_link %> +