From bc662c5a71ce0ef02cdbbaebc17695f9a4587a50 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 29 Aug 2023 10:24:33 +0800 Subject: [PATCH] * Code for task #101329. --- module/common/model.php | 8 +- module/common/view/datatable.fix.html.php | 9 +- module/product/css/browse.css | 3 +- module/story/config.php | 33 ++- module/story/model.php | 243 +++++++++++----------- 5 files changed, 163 insertions(+), 133 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index c3e2038a59..86a65eb0a6 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1720,10 +1720,6 @@ EOF; global $app, $lang, $config; - /* Add data-app attribute. */ - if(strpos($misc, 'data-app') === false) $misc .= ' data-app="' . $app->tab . '"'; - if($onlyBody && strpos($misc, 'data-toggle') === false) $misc .= ' data-toggle="modal"'; - /* Judge the $method of $module clickable or not, default is clickable. */ $clickable = true; if(is_bool($extraEnabled)) @@ -1742,6 +1738,10 @@ EOF; } } + /* Add data-app attribute. */ + if(strpos($misc, 'data-app') === false) $misc .= ' data-app="' . $app->tab . '"'; + if($onlyBody && strpos($misc, 'data-toggle') === false && $clickable) $misc .= ' data-toggle="modal"'; + /* Set module and method, then create link to it. */ if(strtolower($module) == 'story' and strtolower($method) == 'createcase') ($module = 'testcase') and ($method = 'create'); if(strtolower($module) == 'bug' and strtolower($method) == 'tostory') ($module = 'story') and ($method = 'create'); diff --git a/module/common/view/datatable.fix.html.php b/module/common/view/datatable.fix.html.php index 02e8c04b9b..98f40baf4f 100644 --- a/module/common/view/datatable.fix.html.php +++ b/module/common/view/datatable.fix.html.php @@ -3,6 +3,11 @@ moduleName . ucfirst($this->methodName);?> app->rawMethod)?> app->rawModule)?> +