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

index 8a48ba4..07d1988 100644 (file)
@@ -190,7 +190,7 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         var _this = this;
         
         Roo.each(this.el.select('thead th.sortable', true).elements, function(e){
-            e.on('click', _this.store.load, _this.store);
+            e.on('click', _this.sort, _this);
         });
 //        this.maskEl = Roo.DomHelper.append(this.el.select('.TableGrid', true).first(), {tag: "div", cls:"x-dlg-mask"}, true);
 //        this.maskEl.enableDisplayMode("block");