Bug #4625: Fix close button for template clone dialog

(cherry picked from commit bf5db1fb9c)
This commit is contained in:
Carlos Martín committed 2016-07-08 15:17:33 +02:00
1 parent c589758b98
commit 8133685879
2 files changed
+6 -8

No files matched your search

@@ -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">&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>