X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/32f6ee6884704bde04878f5cbc176a7a819a50e8..3a43585742a41468abbd8a74511af6e2164bba1a:/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 4499392b63..f7ae90912f 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -4,33 +4,26 @@
<% pane_list.each_with_index do |pane, i| %>
- -<% content_for :js do %> - $(document).on('<%= 'ready' if i != 0 %> arv-log-event', function() { - $.ajax('<%= url_for @object %>?tab_pane=<%= pane %>', {dataType: 'html', type: 'GET'}). - done(function(data, status, jqxhr) { - $('#<%= pane %> > div > div').html(data); - }). - fail(function(jqxhr, status, error) { - }); - }); + class="tab-pane fade <%= 'in active loaded' if i==0 %> arv-log-event-listener" +<% if controller.action_name == "index" %> + data-object-kind="arvados#<%= ArvadosApiClient.class_kind controller.model_class %>" +<% else %> + data-object-uuid="<%= @object.uuid %>" <% end %> + > -
+
<% if i == 0 %> - <%= render(partial: 'show_' + pane.downcase, - locals: { comparable: comparable, objects: @objects }) %> - <% else %> - <%= image_tag 'ajax-loader.gif' %> + <%= render_pane pane, to_string: true %> + <% else %> +
<% end %>
@@ -39,8 +32,3 @@
<% end %> - -<% content_for :js do %> - $(window).on('load', smart_scroll_fixup); - $(document).on('shown.bs.tab', 'ul.nav-tabs > li > a', smart_scroll_fixup); -<% end %>