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