|
|
@@ -640,6 +640,8 @@ class TableAjax extends ViewAjax {
|
|
|
|
|
|
priv.onRender = function(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) {
|
|
|
for (var i=1; i<arguments.length; 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
|
|
|
priv.setStateCols(state.data.cols, state.data.primaryKey);
|
|
|
priv.setStateData(state.data);
|
|
|
- renderParts['head'] = true;
|
|
|
} else {
|
|
|
priv.setStateData(state.data);
|
|
|
}
|
|
|
@@ -2224,6 +2225,8 @@ class TableAjax extends ViewAjax {
|
|
|
|
|
|
priv.setStateCols = function(cols, primaryKey) {
|
|
|
if (priv.options.debug) console.log('priv.setStateCols: ', {primaryKey: primaryKey, cols: cols});
|
|
|
+ // console.log("priv.setStateCols");
|
|
|
+ // console.trace();
|
|
|
_state.cols = cols;
|
|
|
_state.primaryKey = primaryKey || _state.primaryKey;
|
|
|
// fix col name - props.column
|
|
|
@@ -2337,10 +2340,10 @@ class TableAjax extends ViewAjax {
|
|
|
*/
|
|
|
priv.filterChanged = function(e) {
|
|
|
//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) {
|
|
|
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
|