Ver Fonte

poprawienie linkow

dariusz.andryskowski há 7 anos atrás
pai
commit
768e8c5571
1 ficheiros alterados com 11 adições e 0 exclusões
  1. 11 0
      tools/Bocian.php.view.js

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

@@ -228,6 +228,17 @@ console.log('dane z formularza formDataFrom ', formDataFrom );
  }).then(function(json) {
 	 console.log('parsed json', json)
 
+	 if (result.type == 'success') {
+
+	 	p5UI__notifyAjaxCallback(result);
+	 	defaultBIAuditLocalStorage();
+	 	window.setTimeout(window.location.href = "/SE/index.php?_route=ViewTableAjax&namespace=default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA", 4000);
+	 	resolve(result.msg);
+
+	 } else {
+	 	reject(result.msg);
+	 }
+
 	// return json;
  }).catch(function(ex) {
 	 console.log('parsing failed', ex)