Roo/bootstrap/PagingToolbar.js
authoredward <edward@roojs.com>
Tue, 2 Jan 2018 07:36:51 +0000 (15:36 +0800)
committeredward <edward@roojs.com>
Tue, 2 Jan 2018 07:36:51 +0000 (15:36 +0800)
Roo/bootstrap/PagingToolbar.js

index f5e51f3..39d90f7 100644 (file)
@@ -226,7 +226,10 @@ Roo.extend(Roo.bootstrap.PagingToolbar, Roo.bootstrap.NavSimplebar, {
             ap = d.activePage,
             ps = d.pages;
         
-        this.afterTextEl.dom.innerHTML = String.format(this.afterPageText, d.pages);
+        if(this.afterTextEl) {
+            this.afterTextEl.dom.innerHTML = String.format(this.afterPageText, d.pages);
+        }
+        
         this.field.dom.value = ap;
         this.first.setDisabled(ap == 1);
         this.prev.setDisabled(ap == 1);