Pager widget initializes properly. Fixes #510

This commit is contained in:
Mottie 2014-02-23 00:46:34 -06:00
parent 556bcc2d48
commit 4e80bc9753

View File

@ -194,12 +194,10 @@ tsp = ts.pager = {
tsp.bindEvents(table, c); tsp.bindEvents(table, c);
// pager initialized // pager initialized
if (!p.ajax) { p.initialized = true;
p.initialized = true; p.isInitializing = false;
p.isInitializing = false; tsp.setPageSize(table, 0, c); // page size 0 is ignored
tsp.setPageSize(table, 0, c); // page size 0 is ignored c.$table.trigger('pagerInitialized', c);
c.$table.trigger('pagerInitialized', c);
}
}, },