Fix modals

This commit is contained in:
Giuseppe Criscione 2019-03-16 15:28:00 +01:00
parent 4ae2b29da2
commit 6c9b2e6c19
3 changed files with 9 additions and 1 deletions

4
admin/assets/js/app.js Normal file → Executable file
View File

@ -488,6 +488,9 @@ Formwork.Modals = {
show: function (id, action, callback) {
var $modal = $('#' + id);
if (!$modal.length) {
return;
}
$modal.addClass('show');
if (action !== null) {
$('form', $modal).attr('action', action);
@ -496,6 +499,7 @@ Formwork.Modals = {
if (typeof callback === 'function') {
callback($modal);
}
$('.tooltip').remove();
this.createBackdrop();
},

2
admin/assets/js/app.min.js vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

View File

@ -38,6 +38,9 @@ Formwork.Modals = {
show: function (id, action, callback) {
var $modal = $('#' + id);
if (!$modal.length) {
return;
}
$modal.addClass('show');
if (action !== null) {
$('form', $modal).attr('action', action);
@ -46,6 +49,7 @@ Formwork.Modals = {
if (typeof callback === 'function') {
callback($modal);
}
$('.tooltip').remove();
this.createBackdrop();
},