projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b04146
)
Roo/bootstrap/Table.js
author
Edward
<edward@roojs.com>
Thu, 10 Jul 2014 05:22:43 +0000
(13:22 +0800)
committer
Edward
<edward@roojs.com>
Thu, 10 Jul 2014 05:22:43 +0000
(13:22 +0800)
Roo/bootstrap/Table.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Table.js
b/Roo/bootstrap/Table.js
index
f0f1d9f
..
fa5f3dd
100644
(file)
--- a/
Roo/bootstrap/Table.js
+++ b/
Roo/bootstrap/Table.js
@@
-209,12
+209,15
@@
Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, {
{
var col = Roo.get(el)
var sort = col.attr('sort');
- var dir = '
DE
SC';
+ var dir = '
A
SC';
+ if(col.hasClass('glyphicon-arrow-up')){
+ dir = 'DESC';
+ }
- this.store.sortInfo = {field
:sort,direction:'ASC'
};
+ this.store.sortInfo = {field
: sort, direction : dir
};
this.store.load();
},