Project

General

Profile

« Previous | Next » 

Revision 5f58478b

Added by Amos Benari about 10 years ago

fixes #5132 URL doesn't update correctly after creating a new host

View differences:

app/assets/javascripts/host_edit.js
$("#host-progress").hide();
$('#content').replaceWith($("#content", response));
$(document.body).trigger('ContentLoad');
if($("[data-history-url]").exists()){
history.pushState({}, "Host show", $("[data-history-url]").data('history-url'));
}
}
},
error: function(response){
app/views/hosts/show.html.erb
<%= host_title_actions(@host) %>
<% content_for(:search_bar) {reports_show} %>
<div id="host-show" class="row">
<div id="host-show" class="row" data-history-url='<%= host_path(@host)%>'>
<div class="col-md-4">
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#properties" data-toggle="tab"><%= _('Properties') %></a></li>

Also available in: Unified diff