|
@@ -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)
|