mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 09:42:43 +01:00
Fix modals
This commit is contained in:
parent
4ae2b29da2
commit
6c9b2e6c19
4
admin/assets/js/app.js
Normal file → Executable file
4
admin/assets/js/app.js
Normal file → Executable file
@ -488,6 +488,9 @@ Formwork.Modals = {
|
|||||||
|
|
||||||
show: function (id, action, callback) {
|
show: function (id, action, callback) {
|
||||||
var $modal = $('#' + id);
|
var $modal = $('#' + id);
|
||||||
|
if (!$modal.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$modal.addClass('show');
|
$modal.addClass('show');
|
||||||
if (action !== null) {
|
if (action !== null) {
|
||||||
$('form', $modal).attr('action', action);
|
$('form', $modal).attr('action', action);
|
||||||
@ -496,6 +499,7 @@ Formwork.Modals = {
|
|||||||
if (typeof callback === 'function') {
|
if (typeof callback === 'function') {
|
||||||
callback($modal);
|
callback($modal);
|
||||||
}
|
}
|
||||||
|
$('.tooltip').remove();
|
||||||
this.createBackdrop();
|
this.createBackdrop();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
2
admin/assets/js/app.min.js
vendored
Normal file → Executable file
2
admin/assets/js/app.min.js
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
@ -38,6 +38,9 @@ Formwork.Modals = {
|
|||||||
|
|
||||||
show: function (id, action, callback) {
|
show: function (id, action, callback) {
|
||||||
var $modal = $('#' + id);
|
var $modal = $('#' + id);
|
||||||
|
if (!$modal.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$modal.addClass('show');
|
$modal.addClass('show');
|
||||||
if (action !== null) {
|
if (action !== null) {
|
||||||
$('form', $modal).attr('action', action);
|
$('form', $modal).attr('action', action);
|
||||||
@ -46,6 +49,7 @@ Formwork.Modals = {
|
|||||||
if (typeof callback === 'function') {
|
if (typeof callback === 'function') {
|
||||||
callback($modal);
|
callback($modal);
|
||||||
}
|
}
|
||||||
|
$('.tooltip').remove();
|
||||||
this.createBackdrop();
|
this.createBackdrop();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user