1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

Feature #4363: Fix image advanced options style

This commit is contained in:
Carlos Martín 2016-05-19 12:55:21 +02:00
parent 06e740d10f
commit 9b780a840f
2 changed files with 7 additions and 19 deletions

View File

@ -78,11 +78,6 @@ define(function(require) {
// TODO: Show DS with the same ds mad only
that.datastoreTable.initialize();
$('#image_clone_advanced_toggle', dialog).click(function() {
$('#image_clone_advanced', dialog).toggle();
return false;
});
$('#' + DIALOG_ID + 'Form', dialog).submit(function() {
var name = $('input[name="image_clone_name"]', this).val();
var sel_elems = Sunstone.getDataTable(IMAGES_TAB_ID).elements();
@ -130,7 +125,6 @@ define(function(require) {
$('input[name="image_clone_name"]', dialog).val('Copy of ' + OpenNebulaImage.getName(sel_elems[0]));
};
$('#image_clone_advanced', dialog).hide();
this.datastoreTable.resetResourceTableSelect();
$("input[name='image_clone_name']", dialog).focus();

View File

@ -30,20 +30,14 @@
</div>
<div class="row">
<div class="large-12 columns">
<dl class="accordion" id="image_clone_advanced_toggle" data-accordion>
<dd class="accordion-navigation">
<a href="#image_clone_advanced">{{tr "Advanced options"}}</a>
</dd>
</dl>
<div id="image_clone_advanced" class="row collapse content">
<br>
<div class="large-12 columns">
<span>{{tr "You can select a different target datastore"}}</span>
<br/>
<br/>
</div>
{{{datastoreTableSelectHTML}}}
{{#advancedSection (tr "Advanced Options") }}
<div class="large-12 columns">
<span>{{tr "You can select a different target datastore"}}</span>
<br/>
<br/>
</div>
{{{datastoreTableSelectHTML}}}
{{/advancedSection}}
</div>
</div>
<div class="form_buttons row">