X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/497ea8e6fd12ce91cad108af78df5e3802a79d69..2cf4ea4fe0e1eda66d510983bf27fb9836af5ff4:/apps/workbench/app/views/application/_content.html.erb?ds=sidebyside diff --git a/apps/workbench/app/views/application/_content.html.erb b/apps/workbench/app/views/application/_content.html.erb index 3b3ac6aa85..c4656e659d 100644 --- a/apps/workbench/app/views/application/_content.html.erb +++ b/apps/workbench/app/views/application/_content.html.erb @@ -1,64 +1,73 @@ -<% content_for :js do %> - function ajaxRefreshTabPane(pane) { - $.ajax('<%=j url_for @object %>?tab_pane='+pane, {dataType: 'html', type: 'GET'}). - done(function(data, status, jqxhr) { - $('#' + pane + ' > div > div').html(data); - $(document).trigger('ajax:complete') - }); - } +<%# Copyright (C) The Arvados Authors. All rights reserved. - $(window).on('load', smart_scroll_fixup); +SPDX-License-Identifier: AGPL-3.0 %> - $(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)); - }); +<% content_for :tab_panes do %> - $(document).on('arv-log-event', function() { - ajaxRefreshTabPane($('.tab-pane.active')[0].id); - }); -<% end %> + <% comparable = controller.respond_to? :compare %> -<% content_for :tab_panes do %> +