From a310d7ad96b97146b054e6d6e6a3b2b665ef3622 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Mon, 20 May 2024 09:13:51 +0800 Subject: [PATCH] * Fix requirement js error. --- module/my/js/requirement.ui.js | 2 +- module/my/ui/requirement.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/my/js/requirement.ui.js b/module/my/js/requirement.ui.js index 18a372a156..4d7a4b70a8 100644 --- a/module/my/js/requirement.ui.js +++ b/module/my/js/requirement.ui.js @@ -33,7 +33,7 @@ window.onRenderCell = function(result, {row, col}) { for(index in row.data.actions) { - if(row.data.actions[index].name == 'recall') row.data.actions[index].hint = (row.data.status == 'changing' ? recallChange : recall + if(row.data.actions[index].name == 'recall') row.data.actions[index].hint = row.data.status == 'changing' ? recallChange : recall; } } return result; diff --git a/module/my/ui/requirement.html.php b/module/my/ui/requirement.html.php index f182ad82ae..437b922f57 100644 --- a/module/my/ui/requirement.html.php +++ b/module/my/ui/requirement.html.php @@ -82,7 +82,7 @@ dtable set::userMap($users), set::fixedLeftWidth('44%'), set::checkable($canBatchAction ? true : false), - set::onRenderCell(jsRaw('window.renderCell')), + set::onRenderCell(jsRaw('window.onRenderCell')), set::orderBy($orderBy), set::sortLink(createLink('my', $app->rawMethod, "mode={$mode}&type={$type}¶m={$param}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")), set::footToolbar($footToolbar),