function ajaxRefreshTabPane(pane) {
if (!tab_pane_valid_state[pane]) {
tab_pane_valid_state[pane] = true;
- $(document).trigger('ajax:send');
- $.ajax('<%=j url_for() %>?tab_pane='+pane, {dataType: 'html', type: 'GET'}).
+ $.ajax('<%=j url_for() %>?<%= raw(controller.request.query_string) %>&tab_pane='+pane, {dataType: 'html', type: 'GET'}).
done(function(data, status, jqxhr) {
$('#' + pane + ' > div > div').html(data);
- $(document).trigger('ajax:complete');
ajaxRefreshTabPane(pane);
});
}
<% else %>
data-object-uuid="<%= @object.uuid %>"
<% end %>
->
+ >
<% content_for :js do %>
<% if i == 0 %>
<% end %>
<% end %>
- <div id="<%= pane %>-scroll" class="<%= 'smart-scroll' if pane.match(/graph/) %>" style="margin-top:0.5em;">
+ <div id="<%= pane %>-scroll" style="margin-top:0.5em;">
<div class="pane-content">
<% if i == 0 %>
<%= render(partial: 'show_' + pane.downcase,
locals: { comparable: comparable, objects: @objects }) %>
<% else %>
- <%= image_tag 'ajax-loader.gif' %>
+ <div class="spinner spinner-32px spinner-h-center"></div>
<% end %>
</div>
</div>