From 642c0276eaaf1960cb588282df474fc4ed579450 Mon Sep 17 00:00:00 2001 From: DuanDongmei Date: Thu, 15 Nov 2018 11:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=92=E5=BA=8F=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4=E4=B8=8D=E6=94=B9=E5=8F=98bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/tags/sys/tableSort.tag | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/WEB-INF/tags/sys/tableSort.tag b/src/main/webapp/WEB-INF/tags/sys/tableSort.tag index 908300897..0a59443f0 100644 --- a/src/main/webapp/WEB-INF/tags/sys/tableSort.tag +++ b/src/main/webapp/WEB-INF/tags/sys/tableSort.tag @@ -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()+" "); */ - $(this).html($(this).html()+" "); + if (orderBy[0] !=null && orderBy[0] !='' && $(this).hasClass(orderBy[0])){ + orderBy[1] = orderBy[1]&&orderBy[1].toUpperCase()=="DESC"?"down":"up"; + $(this).html($(this).html()+" "); }else { $(this).html($(this).html()+" "); }