Roo/bootstrap/Table.js
[roojs1] / roojs-bootstrap-debug.js
index e53dea1..871aaf4 100644 (file)
@@ -3052,11 +3052,10 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
             
             if(e.hasClass('sortable') && e.attr('sort') == _this.store.sortInfo.field && _this.store.sortInfo.direction.toUpperCase() == 'ASC'){
                 e.addClass(['glyphicon', 'glyphicon-arrow-up']);
+                return;
             }
             
-            if(e.hasClass('sortable') && e.attr('sort') == _this.store.sortInfo.field && _this.store.sortInfo.direction.toUpperCase() == 'DESC'){
-                e.addClass(['glyphicon', 'glyphicon-arrow-down']);
-            }
+            e.addClass(['glyphicon', 'glyphicon-arrow-down']);
         });
         
         var tbody = this.el.select('tbody', true).first();