@iankibetsh/shframework 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.js +2 -12
- package/dist/library.mjs +2 -12
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -2392,18 +2392,8 @@ var script$l = {
|
|
|
2392
2392
|
closeModal: function () {
|
|
2393
2393
|
document.body.style = '';
|
|
2394
2394
|
setTimeout(() => {
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2397
|
-
const modal = form.closest('.modal.show');
|
|
2398
|
-
if (modal) {
|
|
2399
|
-
modal.click();
|
|
2400
|
-
}
|
|
2401
|
-
} else {
|
|
2402
|
-
const backdrops = document.getElementsByClassName('modal-backdrop fade show');
|
|
2403
|
-
if (backdrops.length > 0) {
|
|
2404
|
-
backdrops[0].remove();
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2395
|
+
const closeBtn = this.$refs.ShAutoForm.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
|
|
2396
|
+
closeBtn && closeBtn.click();
|
|
2407
2397
|
this.form_status = 0;
|
|
2408
2398
|
}, 1500);
|
|
2409
2399
|
},
|
package/dist/library.mjs
CHANGED
|
@@ -2379,18 +2379,8 @@ var script$l = {
|
|
|
2379
2379
|
closeModal: function () {
|
|
2380
2380
|
document.body.style = '';
|
|
2381
2381
|
setTimeout(() => {
|
|
2382
|
-
const
|
|
2383
|
-
|
|
2384
|
-
const modal = form.closest('.modal.show');
|
|
2385
|
-
if (modal) {
|
|
2386
|
-
modal.click();
|
|
2387
|
-
}
|
|
2388
|
-
} else {
|
|
2389
|
-
const backdrops = document.getElementsByClassName('modal-backdrop fade show');
|
|
2390
|
-
if (backdrops.length > 0) {
|
|
2391
|
-
backdrops[0].remove();
|
|
2392
|
-
}
|
|
2393
|
-
}
|
|
2382
|
+
const closeBtn = this.$refs.ShAutoForm.closest('.modal-dialog').querySelector('[data-bs-dismiss="modal"]');
|
|
2383
|
+
closeBtn && closeBtn.click();
|
|
2394
2384
|
this.form_status = 0;
|
|
2395
2385
|
}, 1500);
|
|
2396
2386
|
},
|