diff --git a/xuanxuan/module/chat/ext/config/chat.php b/xuanxuan/module/chat/ext/config/chat.php index bcac4ffbc9..0fb42e157d 100644 --- a/xuanxuan/module/chat/ext/config/chat.php +++ b/xuanxuan/module/chat/ext/config/chat.php @@ -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'); diff --git a/xuanxuan/module/chat/ext/model/class/xuanxuan.class.php b/xuanxuan/module/chat/ext/model/class/xuanxuan.class.php index 2696aa7fe4..7157461759 100644 --- a/xuanxuan/module/chat/ext/model/class/xuanxuan.class.php +++ b/xuanxuan/module/chat/ext/model/class/xuanxuan.class.php @@ -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();