Piotr Labudda vor 7 Jahren
Ursprung
Commit
56ddd11161
2 geänderte Dateien mit 3 neuen und 13 gelöschten Zeilen
  1. 0 2
      theme/assets/js/graph/csaladenes/sankey/sankey.js
  2. 3 11
      tools/Bocian.php.view.js

+ 0 - 2
theme/assets/js/graph/csaladenes/sankey/sankey.js

@@ -192,7 +192,6 @@ d3.sankey = function() {
   // Populate the sourceLinks and targetLinks for each node.
   // Also, if the source and target are not objects, assume they are indices.
   function computeNodeLinks() {
-    console.log('DBG:sankey:computeNodeLinks: 1: ', {nodes, links})
     nodes.forEach(function(node) {
       node.sourceLinks = [];
       node.targetLinks = [];
@@ -208,7 +207,6 @@ d3.sankey = function() {
       source.sourceLinks.push(link);
       target.targetLinks.push(link);
     });
-    console.log('DBG:sankey:computeNodeLinks: 2:', {nodes, links})
   }
 
   // Compute the value (size) of each node by summing the associated links.

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

@@ -1738,7 +1738,6 @@ function graphFetchData(node, nameSection) {
 	var filterIdGroup = getItemLocalStorage('Bocian.biAuditForm.'+nameSection+'.filterIdGroup');
 
 	var frm = document.getElementById('filtersFieldRemoveBtn-' + nameSection.toUpperCase()).form
-	console.log('frm', frm)
 	var fieldNameList = ('pracownicy' === nameSection) ? FIELD_LIST_PRACOWNICY : FIELD_LIST_KONTRAHENCI
 	var filterFields = fieldNameList.filter(function (fieldName) {
 		if (!frm[fieldName] && DBG) console.log('Err missing field: "'+fieldName+'"')
@@ -1785,13 +1784,6 @@ function graphFetchData(node, nameSection) {
 		filterFields: filterFields,
 		ogcFilterFields: ogcFilterFields,
 	});
-	console.log('graphFetchData...', {
-		paginationLimit: paginationLimit,
-		page: page,
-		filterIdGroup: filterIdGroup,
-		filterFields: filterFields,
-		ogcFilterFields: ogcFilterFields,
-	});
 
 	p5WFS_GetFeature('default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY',
 		Object.assign({
@@ -1909,8 +1901,8 @@ function graphRender(wrapNode, props) {
 	})
 
 	var totalLinks = _links.length
-	console.log('DBG:0: _links', _links)
-	console.log('DBG:1: _nodes', _nodes)
+	// console.log('DBG:0: _links', _links)
+	// console.log('DBG:1: _nodes', _nodes)
 	_nodes = _nodes.filter(function (node, idx) {
 		if (node.typeName !== 'pracownicy') return true
 		for (i=0; i<totalLinks; i++) {
@@ -1920,7 +1912,7 @@ function graphRender(wrapNode, props) {
 		}
 		return false
 	})
-	console.log('DBG:2: _nodes', _nodes)
+	// console.log('DBG:2: _nodes', _nodes)
 	jQuery(wrapNode).find('p').remove()
 	if (!_nodes || !_nodes.length) {
 		jQuery(wrapNode).find('svg').remove()