Skip to content
Browse files

Apply the change to keeping a pointer to the noDataDiv to the paginat…

…ion plugin
  • Loading branch information...
1 parent cb3c489 commit 628571efbe3ca2e028a0f9ba3419366fd6fbdc61 @kriszyp committed Oct 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 extensions/Pagination.js
View
4 extensions/Pagination.js
@@ -237,6 +237,10 @@ function(_StoreMixin, declare, lang, Deferred, on, query, string, has, put, i18n
results = grid.store.query(grid.query, options);
return Deferred.when(grid.renderArray(results, loadingNode, options), function(trs){
+ if(!total){
+ grid.noDataDiv = put(grid.contentNode, "div.dgrid-no-data");
+ grid.noDataDiv.innerHTML = grid.noDataMessage;
+ }
put(loadingNode, "!");
delete grid._isLoading;
// reset scroll position now that new page is loaded

0 comments on commit 628571e

Please sign in to comment.
Something went wrong with that request. Please try again.