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

Bug #4625: Fix close button for template clone dialog

(cherry picked from commit bf5db1fb9c3718070efcaf5678419b7218e2ec98)
This commit is contained in:
Carlos Martín 2016-07-08 15:16:54 +02:00
parent c589758b98
commit 8133685879
2 changed files with 6 additions and 8 deletions

View File

@ -75,7 +75,7 @@ define(function(require) {
return false;
});
$('#' + DIALOG_ID + 'Form', context).on("click", "button", function() {
$('#' + DIALOG_ID + 'Form', context).on("click", "button.custom_submit", function() {
if(!$('#' + DIALOG_ID + 'Form', context)[0].checkValidity()){
if ($(this).val() == that.resource+".clone_recursive"){
$('#' + DIALOG_ID + 'Form button[type="submit"]', context).click();

View File

@ -41,13 +41,11 @@
</div>
</div>
<div class="form_buttons row">
<button type="button" class="button radius right" value="Template.clone_recursive">{{tr "Clone with Images"}}</button>
<button type="submit" class="button radius right" value="Template.clone">{{tr "Clone"}}</button>
</div>
<div id="{{dialogId}}" class="reveal" data-reveal>
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
<span aria-hidden="true">&times;</span>
</button>
<button type="button" class="custom_submit button radius right" value="Template.clone_recursive">{{tr "Clone with Images"}}</button>
<button type="submit" class="custom_submit button radius right" value="Template.clone">{{tr "Clone"}}</button>
</div>
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
<span aria-hidden="true">&times;</span>
</button>
</form>
</div>