From fba37ca64631be9e0bdfd17ca70d85dd2c896bfa Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 15 May 2014 11:09:43 -0400 Subject: [PATCH] 2756: Fix ajax refresh on pipeline instance page. --- apps/workbench/app/views/pipeline_instances/show.js.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/workbench/app/views/pipeline_instances/show.js.erb b/apps/workbench/app/views/pipeline_instances/show.js.erb index 8d8292cb74..bdb703ed17 100644 --- a/apps/workbench/app/views/pipeline_instances/show.js.erb +++ b/apps/workbench/app/views/pipeline_instances/show.js.erb @@ -1,14 +1,14 @@ <% self.formats = [:html] %> var new_content = "<%= escape_javascript(render template: 'pipeline_instances/show') %>"; var selected_tab_hrefs = []; -if ($('div.body-content').html() != new_content) { +if ($('div#page-wrapper').html() != new_content) { $('.nav-tabs li.active a').each(function() { selected_tab_hrefs.push($(this).attr('href')); }); - $('div.body-content').html(new_content); + $('div#page-wrapper').html(new_content); - // Show the same tabs that were active before we rewrote body-content + // Show the same tabs that were active before we rewrote page-wrapper $.each(selected_tab_hrefs, function(i, href) { $('.nav-tabs li a[href="' + href + '"]').tab('show'); }); -- 2.30.2