* Code for task #101329.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user