diff --git a/public/home/search.js b/public/home/search.js index dd3e81b97..eb510a7ff 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -316,8 +316,8 @@ function getTaskDesc(key){ } function getActiveItem(sort_type){ - console.log("currentSearchSortBy=" + currentSearchSortBy + " sort_type=" + sort_type); - if(currentSearchSortBy == sort_type){ + console.log("currentSearchSortBy=" + currentSearchSortBy + " sort_type=" + sortBy[sort_type]); + if(currentSearchSortBy == sortBy[sort_type]){ return "active "; }else{ return "";