@@ -46,6 +46,24 @@ table{
font-weight: 500;
white-space: nowrap;
}
+ th[code]{
+ cursor: pointer;
+ &:after{
+ content:"";
+ display:inline-block;
+ width: 11px;
+ height: 14px;
+ margin-left: 4px;
+ vertical-align: middle;
+ background: url("../images/grey.png");
+ }
+ &.asc:after{
+ background: url("../images/up_blue.png");
+ &.desc:after{
+ background: url("../images/down_blue.png");
td{
font-size: 14px;
font-weight: 400;
@@ -305,9 +305,13 @@ $("th[code]").on("click",function(e){
if(data_asc[0]===code){
data_desc=[code];
data_asc=[];
+ $("th[code]").removeClass("asc desc");
+ $(this).addClass("desc");
}else{
data_desc=[];
data_asc=[code];
+ $(this).addClass("asc");
getTabData(1);
console.log(code)