remove debugging code
[roojs1] / Roo / bootstrap / PaginationItem.js
index 8efdb95..c23d00e 100644 (file)
@@ -61,6 +61,10 @@ Roo.extend(Roo.bootstrap.PaginationItem, Roo.bootstrap.Component,  {
             cfg.cls = this.cls;
         }
         
+        if(this.disabled){
+            cfg.cls = typeof(cfg.cls) !== 'undefined' ? cfg.cls + ' disabled' : 'disabled';
+        }
+        
         if(this.active){
             cfg.cls = typeof(cfg.cls) !== 'undefined' ? cfg.cls + ' active' : 'active';
         }
@@ -80,6 +84,10 @@ Roo.extend(Roo.bootstrap.PaginationItem, Roo.bootstrap.Component,  {
             e.preventDefault();
         }
         
+        if(this.disabled){
+            return;
+        }
+        
         this.fireEvent('click', this, e);
     }