* adjust for get extensions.
This commit is contained in:
@@ -8,3 +8,9 @@ $config->chat->mimes['png'] = 'image/png';
|
||||
$config->chat->mimes['bmp'] = 'image/x-ms-bmp';
|
||||
$config->chat->mimes['xml'] = 'application/xml';
|
||||
$config->chat->mimes['html'] = 'text/html';
|
||||
|
||||
$config->chat->cards['bug']['view'] = array('width' => '700px', 'height' => '600px');
|
||||
$config->chat->cards['task']['view'] = array('width' => '700px', 'height' => '600px');
|
||||
$config->chat->cards['doc']['view'] = array('width' => '700px', 'height' => '600px');
|
||||
$config->chat->cards['story']['view'] = array('width' => '700px', 'height' => '600px');
|
||||
$config->chat->cards['testcase']['view'] = array('width' => '700px', 'height' => '600px');
|
||||
|
||||
@@ -76,18 +76,21 @@ class xuanxuanChat extends chatModel
|
||||
$actions->createTodo = array('title' => $this->lang->chat->createTodo, 'url' => $baseURL . helper::createLink('todo', 'create', '', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
|
||||
$urls = array();
|
||||
foreach(array('bug', 'task', 'doc', 'story', 'testcase') as $moduleName)
|
||||
foreach($this->config->chat->cards as $moduleName => $methods)
|
||||
{
|
||||
$url = '/';
|
||||
if($this->config->requestType == 'GET')
|
||||
foreach($methods as $methodName => $size)
|
||||
{
|
||||
$url .= "index.php?m={$moduleName}&f=view";
|
||||
$url = '/';
|
||||
if($this->config->requestType == 'GET')
|
||||
{
|
||||
$url .= "index.php?m={$moduleName}&f={$methodName}";
|
||||
}
|
||||
else
|
||||
{
|
||||
$url .= "{$moduleName}-{$methodName}-";
|
||||
}
|
||||
$urls[$url] = $size;
|
||||
}
|
||||
else
|
||||
{
|
||||
$url .= "{$moduleName}-view-";
|
||||
}
|
||||
$urls[$url] = true;
|
||||
}
|
||||
|
||||
$data = new stdClass();
|
||||
|
||||
Reference in New Issue
Block a user