Browse Source

poprawienie linkow

dariusz.andryskowski 7 years ago
parent
commit
768e8c5571
1 changed files with 11 additions and 0 deletions
  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)