修改排序箭头不改变bug
This commit is contained in:
@@ -10,11 +10,9 @@
|
||||
$(document).ready(function() {
|
||||
var orderBy = $("#${id}").val().split(" ");
|
||||
$(".sort-column").each(function(){
|
||||
|
||||
if ($(this).hasClass(orderBy[0])){
|
||||
/* orderBy[1] = orderBy[1]&&orderBy[1].toUpperCase()=="DESC"?"down":"up";
|
||||
$(this).html($(this).html()+" <i class=\"sort-icon-"+orderBy[1]+"\"></i>"); */
|
||||
$(this).html($(this).html()+" <i class=\"sort-icon\"></i>");
|
||||
if (orderBy[0] !=null && orderBy[0] !='' && $(this).hasClass(orderBy[0])){
|
||||
orderBy[1] = orderBy[1]&&orderBy[1].toUpperCase()=="DESC"?"down":"up";
|
||||
$(this).html($(this).html()+" <i class=\"sort-icon-"+orderBy[1]+"\"></i>");
|
||||
}else {
|
||||
$(this).html($(this).html()+" <i class=\"sort-icon\"></i>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user