// close modal window
Dashboard.hideModal();
// reload remote inquries
PollingService.update('inquiries');

<%if @inquiry%>
$("#inquiry_<%=params[:id]%>").replaceWith("<%= j(render(partial: 'inquiry/inquiries/item', locals: {inquiry: @inquiry, remote_links: false})) %>");
$("#inquiry_<%=params[:id]%>").update();
<%else%>
$("#inquiry_<%=params[:id]%>").remove();
<%end%>
// close modal window
Dashboard.hideModal();
// reload remote inquries
PollingService.update('inquiries');

Update inqury item inline after update
Update inqury item inline after update
