Browse Source

fixed render head filters in TableAjax

Piotr Labudda 8 years ago
parent
commit
1e4dd058d0
1 changed files with 6 additions and 3 deletions
  1. 6 3
      SE/se-lib/TableAjax.php

+ 6 - 3
SE/se-lib/TableAjax.php

@@ -640,6 +640,8 @@ class TableAjax extends ViewAjax {
 
 
 		priv.onRender = function(e) {
 		priv.onRender = function(e) {
 			if (priv.options.debug) console.log('onRender.arguments:', arguments.length, arguments, 'e:', e);
 			if (priv.options.debug) console.log('onRender.arguments:', arguments.length, arguments, 'e:', e);
+			// console.log("priv.onRender arguments:", arguments);
+			// console.trace();
 			if (arguments.length > 1) {
 			if (arguments.length > 1) {
 				for (var i=1; i<arguments.length; i++) {
 				for (var i=1; i<arguments.length; i++) {
 					switch (arguments[i]) {
 					switch (arguments[i]) {
@@ -2185,7 +2187,6 @@ class TableAjax extends ViewAjax {
 				if (state.data.cols && Object.keys(state.data.cols).length > 0) {// TODO: never happen, but if happend then rerender all
 				if (state.data.cols && Object.keys(state.data.cols).length > 0) {// TODO: never happen, but if happend then rerender all
 					priv.setStateCols(state.data.cols, state.data.primaryKey);
 					priv.setStateCols(state.data.cols, state.data.primaryKey);
 					priv.setStateData(state.data);
 					priv.setStateData(state.data);
-					renderParts['head'] = true;
 				} else {
 				} else {
 					priv.setStateData(state.data);
 					priv.setStateData(state.data);
 				}
 				}
@@ -2224,6 +2225,8 @@ class TableAjax extends ViewAjax {
 
 
 		priv.setStateCols = function(cols, primaryKey) {
 		priv.setStateCols = function(cols, primaryKey) {
 			if (priv.options.debug) console.log('priv.setStateCols: ', {primaryKey: primaryKey, cols: cols});
 			if (priv.options.debug) console.log('priv.setStateCols: ', {primaryKey: primaryKey, cols: cols});
+			// console.log("priv.setStateCols");
+			// console.trace();
 			_state.cols = cols;
 			_state.cols = cols;
 			_state.primaryKey = primaryKey || _state.primaryKey;
 			_state.primaryKey = primaryKey || _state.primaryKey;
 			// fix col name - props.column
 			// fix col name - props.column
@@ -2337,10 +2340,10 @@ class TableAjax extends ViewAjax {
 		 */
 		 */
 		priv.filterChanged = function(e) {
 		priv.filterChanged = function(e) {
 			//clear old timer if we're typing fast enough
 			//clear old timer if we're typing fast enough
-			if (priv.options.debug) console.log('filterChanged L.<?php echo __LINE__; ?>');
+			if (priv.options.debug) console.log('filterChanged::#1');
 			if (_filterTimeout) {
 			if (_filterTimeout) {
 				clearTimeout(_filterTimeout);
 				clearTimeout(_filterTimeout);
-				if (priv.options.debug) console.log('filterChanged L.<?php echo __LINE__; ?> previous filtering cancelled');
+				if (priv.options.debug) console.log('filterChanged::#2 previous filtering cancelled');
 			}
 			}
 
 
 			var filter = this.value
 			var filter = this.value