|
|
@@ -1326,12 +1326,6 @@ class TableAjax extends ViewAjax {
|
|
|
$('<span class="tblAjax__footer__toolbar__functions"></span>').appendTo(footToolbar);
|
|
|
$('<span class="tblAjax__footer__toolbar__export"></span>').appendTo(footToolbar);
|
|
|
|
|
|
- //create summary
|
|
|
- if (_data.total > 0) {
|
|
|
- } else {
|
|
|
- _totalPages = 0;
|
|
|
- }
|
|
|
-
|
|
|
currentFooterNode.replaceWith(_foot);
|
|
|
|
|
|
priv.renderFooterInfo();
|
|
|
@@ -1359,7 +1353,7 @@ class TableAjax extends ViewAjax {
|
|
|
var nodeClass = 'tblAjax__' + 'footer__toolbar__pagination',
|
|
|
currentNode = $(_cont).next('.foot').find('.' + nodeClass),
|
|
|
node;
|
|
|
- if (priv.options.debug) console.log('Render: ', nodeClass);
|
|
|
+ if (priv.options.debug) console.log('Render: ', nodeClass, '_data.total', _data.total, '_currPage', _currPage);
|
|
|
if (_data.total > 0) {
|
|
|
node = $('<div class="btn-group ' + nodeClass + '"></div>');
|
|
|
var totalPages = Math.ceil(_data.total / priv.options.pageSize);
|
|
|
@@ -1705,7 +1699,7 @@ class TableAjax extends ViewAjax {
|
|
|
renderParts.push('foot_pagination');
|
|
|
}
|
|
|
|
|
|
-/// console.log('setState::renderParts: ', renderParts);//TODO:DBG:RMME
|
|
|
+ if (priv.options.debug) console.log('setState::renderParts: ', renderParts);//TODO:DBG:RMME
|
|
|
if (renderParts.length > 0) {
|
|
|
jQuery(_cont).trigger('TableAjax:render', renderParts);
|
|
|
}
|
|
|
@@ -1729,7 +1723,7 @@ class TableAjax extends ViewAjax {
|
|
|
_data.toRow = Math.min(_data.total, _data.toRow);
|
|
|
_data.fromRow = _data.toRow - priv.options.pageSize;
|
|
|
_data.fromRow = Math.max(_data.fromRow, 0);
|
|
|
- _currPage = Math.ceil(_data.fromRow / priv.options.pageSize) + 1;
|
|
|
+ //_currPage = Math.ceil(_data.fromRow / priv.options.pageSize) + 1;
|
|
|
_totalPages = Math.ceil(_data.total / priv.options.pageSize);
|
|
|
} else {
|
|
|
_data.fromRow = 0;
|
|
|
@@ -2177,8 +2171,6 @@ class TableAjax extends ViewAjax {
|
|
|
page: _currPage
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
- jQuery(_cont).trigger('TableAjax:render', ['body', 'foot_pagination']);
|
|
|
};
|
|
|
|
|
|
/*
|