Roo/bootstrap/Table.js
authorEdward <edward@roojs.com>
Thu, 10 Jul 2014 05:03:59 +0000 (13:03 +0800)
committerEdward <edward@roojs.com>
Thu, 10 Jul 2014 05:03:59 +0000 (13:03 +0800)
Roo/bootstrap/Table.js

index 5270bad..492807c 100644 (file)
@@ -185,10 +185,11 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
             return;
         }
         
+        var _this = this;
         Roo.log('initEvents with ds!!!!');
         
         Roo.each(this.el.select('thead th.sortable').elements, function(e){
-            Roo.log(e);
+            e.on('click', _this.store.load());
         });
 //        this.maskEl = Roo.DomHelper.append(this.el.select('.TableGrid', true).first(), {tag: "div", cls:"x-dlg-mask"}, true);
 //        this.maskEl.enableDisplayMode("block");