Revision c436f25d
Added by Amos Benari over 10 years ago
app/assets/javascripts/two-pane.js | ||
---|---|---|
});
|
||
|
||
$(document).on('click', "#title_action a[href$='new']", function(e) {
|
||
if ($('.table-two-pane').length) {
|
||
if ($('.table-two-pane').length && $(this).data('target') != 'full-page') {
|
||
e.preventDefault();
|
||
two_pane_open(this);
|
||
}
|
app/views/compute_resources/show.html.erb | ||
---|---|---|
</div>
|
||
<% if @compute_resource.capabilities.include?(:image) %>
|
||
<div id="images" class="tab-pane">
|
||
<%= title_actions(display_link_if_authorized(_("New Image"), hash_for_new_compute_resource_image_path(:compute_resource_id => @compute_resource.id), :class => "btn btn-success")) %>
|
||
<%= title_actions(display_link_if_authorized(_("New Image"), hash_for_new_compute_resource_image_path(:compute_resource_id => @compute_resource.id), :class => "btn btn-success", :data=>{:target=>"full-page"})) %>
|
||
<div id="images_list" data-url=<%= compute_resource_images_path(@compute_resource) %>>
|
||
<p id="spinner">
|
||
<%= image_tag '/assets/spinner.gif' %>
|
Also available in: Unified diff
fixes #4019 Compute Resource -> New Image renders on Compute Profiles tab