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:
parent
c589758b98
commit
8133685879
@ -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();
|
||||
|
@ -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">×</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">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user