Pārlūkot izejas kodu

fixed clear selected when select group, fixed raport link

Piotr Labudda 7 gadi atpakaļ
vecāks
revīzija
67c3ef450f
2 mainītis faili ar 7 papildinājumiem un 6 dzēšanām
  1. 1 1
      tools/Bocian.php
  2. 6 5
      tools/Bocian.php.view.js

+ 1 - 1
tools/Bocian.php

@@ -37,7 +37,7 @@ class Bocian extends RouteToolBase {
 			'VIEW_PRACOWNICY' => $this->defaultViewFormBiAudit([], 'PRACOWNICY'),
 			'URL_FORM_DATA_CSV_FILE_AJAX' => $this->getLink('formDataCsvFileAjax'),
 			'URL_SAVE_FORM_CSV_FILE_AJAX' => $this->getLink('saveFormCsvFileAjax'),
-
+			'URL_TABLE_POWIAZANIA' => Router::getRoute('ViewTableAjax&', [ 'namespace' => "default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" ]),
 		]);
 
 		echo '</div>'; // #smad-wrapper

+ 6 - 5
tools/Bocian.php.view.js

@@ -1,4 +1,5 @@
 
+if (!URL_TABLE_POWIAZANIA) throw "Brak URL_TABLE_POWIAZANIA";
 if (!BASE_URLS) {
 	throw "Brak BASE_URLS"
 }
@@ -291,7 +292,7 @@ function generateBiAuditRaport(event) {
 
 						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", 6000);
+						window.setTimeout(URL_TABLE_POWIAZANIA, 6000);
 						resolve(result.msg);
 
 					} else {
@@ -687,7 +688,7 @@ function getNameGroupById(store, filterIdGroup) {
 
 function urlFetchKontrahenci(page) {
 			var page = page || getItemLocalStorage('Bocian.biAuditForm.kontrahenci.pagination.page');
-			
+
 			selectPage('KONTRAHENCI', page);
 
 			if ( page === 1) {
@@ -695,7 +696,7 @@ function urlFetchKontrahenci(page) {
 			}
 
 			var filterIdGroup = getItemLocalStorage('Bocian.biAuditForm.kontrahenci.filterIdGroup');
-			
+
 			fetch(URL_FETCH_KONTRAHENCI + '&page=' + page + '&filterIdGroup=' + filterIdGroup, {
 					credentials: 'same-origin'
 				})
@@ -1150,7 +1151,7 @@ function detectChoiseFilter() {
 		// aktaulna wartość  zagłebienia
 		var currentDepthValue = getItemLocalStorage('Bocian.biAuditForm.depth');
 		//reset LocalStorage
-		defaultBIAuditLocalStorage();
+		// defaultBIAuditLocalStorage();
 		// ustawienie ostaniej wartości zagłebienia  przed resete
 		setItemLocalStorage('Bocian.biAuditForm.depth', currentDepthValue);
 
@@ -1170,7 +1171,7 @@ function detectChoiseFilter() {
 		// aktaulna wartość  zagłebienia
 		var currentDepthValue = getItemLocalStorage('Bocian.biAuditForm.depth');
 		//reset LocalStorage
-		defaultBIAuditLocalStorage();
+		// defaultBIAuditLocalStorage();
 		// ustawienie ostaniej wartości zagłebienia  przed resete
 		setItemLocalStorage('Bocian.biAuditForm.depth', currentDepthValue);