From 62dc601baeaba4ba020fb82b90b04addc717d83c Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 7 Nov 2023 02:01:32 +0000 Subject: [PATCH] * Adjust the direction for sorting. --- module/company/js/dynamic.ui.js | 2 +- module/company/ui/dynamic.html.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/module/company/js/dynamic.ui.js b/module/company/js/dynamic.ui.js index 428684480e..b7475960b3 100644 --- a/module/company/js/dynamic.ui.js +++ b/module/company/js/dynamic.ui.js @@ -13,7 +13,7 @@ function changeItem() var orderBy = $('[name="orderBy"]').val(); var type = browseType == 'bysearch' ? 'all' : browseType; - link = $.createLink('company', 'dynamic', 'browseType=' + type + '¶m=&recTotal=0&date=&direction=' + direction + '&userID=' + userID + '&productID=' + productID + '&projectID=' + projectID + '&executionID=' + executionID + '&orderBy=' + orderBy); + link = $.createLink('company', 'dynamic', 'browseType=' + type + '¶m=&recTotal=0&date=&direction=no&userID=' + userID + '&productID=' + productID + '&projectID=' + projectID + '&executionID=' + executionID + '&orderBy=' + orderBy); loadPage(link); } diff --git a/module/company/ui/dynamic.html.php b/module/company/ui/dynamic.html.php index 702b2236c4..d12ede68cd 100644 --- a/module/company/ui/dynamic.html.php +++ b/module/company/ui/dynamic.html.php @@ -11,13 +11,12 @@ declare(strict_types=1); namespace zin; jsVar('browseType', $browseType); -jsVar('direction', $direction); /* zin: Define the feature bar on main menu. */ featureBar ( set::current($browseType), - set::linkParams("browseType={key}¶m={$param}&recTotal=0&date=&direction={$direction}&userID={$userID}&productID={$productID}&projectID={$projectID}&executionID={$executionID}&orderBy={$orderBy}"), + set::linkParams("browseType={key}¶m={$param}&recTotal=0&date=&direction=next&userID={$userID}&productID={$productID}&projectID={$projectID}&executionID={$executionID}&orderBy={$orderBy}"), li ( setClass('w-28 ml-4'),