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)?> +