Jelajahi Sumber

prevent to close csv import modal by click outside, added close btn

Piotr Labudda 7 tahun lalu
induk
melakukan
7d19a39df0
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      tools/Bocian.php.view.js

+ 2 - 0
tools/Bocian.php.view.js

@@ -165,6 +165,8 @@ function parseCsvFile( fileData ) {
 								 title: 'Dane załadowane z pliku CSV',
 								 title: 'Dane załadowane z pliku CSV',
 								 html: json.body.view,
 								 html: json.body.view,
 								 width: Math.round(window.innerWidth * 0.9),
 								 width: Math.round(window.innerWidth * 0.9),
+								 allowOutsideClick: false, // TODO: btn Anuluj na dole?
+								 showCloseButton: true,
 								 confirmButtonText: 'Zapisz',
 								 confirmButtonText: 'Zapisz',
 								 preConfirm: function (dataForm) {
 								 preConfirm: function (dataForm) {
 						 			return new Promise(function (resolve, reject) {
 						 			return new Promise(function (resolve, reject) {