Просмотр исходного кода

poprawione uncheckowanie plikow

michalzmijewski 7 лет назад
Родитель
Сommit
e2d6f8ae92
1 измененных файлов с 7 добавлено и 8 удалено
  1. 7 8
      tools/Bocian.php.view.js

+ 7 - 8
tools/Bocian.php.view.js

@@ -1072,9 +1072,11 @@ function removeKontrahenciFromGroup(event){
 				})
 				.then(function(result) {
 					result
-					$('#smad-table-KONTRAHENCI form').find(':checkbox').prop('checked', false);
 					if (result.type == 'success') {
 						p5UI__notifyAjaxCallback(result);
+						defaultBIAuditLocalStorage();
+						updateTopCounters();
+						$('#smad-table-KONTRAHENCI form').find(':checkbox').prop('checked', false);
 						resolve(result.msg);
 					} else {
 						reject(result.msg);
@@ -1154,6 +1156,9 @@ function removePracownikFromGroup(event){
 					result
 					if (result.type == 'success') {
 						p5UI__notifyAjaxCallback(result);
+						defaultBIAuditLocalStorage();
+						updateTopCounters();
+						$('#smad-table-PRACOWNICY form').find(':checkbox').prop('checked', false);
 						resolve(result.msg);
 					} else {
 						reject(result.msg);
@@ -1164,13 +1169,7 @@ function removePracownikFromGroup(event){
 	  },
 	  allowOutsideClick: false
 	}).then((result) => {
-	  if (result.value) {
-	    swal({
-	      type: 'success',
-	      title: 'Ajax request finished!',
-	      html: 'Submitted email: ' + result.value
-	    })
-	  }
+	  
 	});
 
 }