* Finish task #38917.
This commit is contained in:
@@ -28,3 +28,10 @@ $config->todo->custom->batchCreateFields = 'type,pri,desc,beginAndEnd';
|
||||
$config->todo->custom->batchEditFields = 'pri,beginAndEnd,status';
|
||||
|
||||
$config->todo->moduleList = array('bug', 'task', 'story', 'review', 'testtask');
|
||||
|
||||
$config->todo->getUserObjectsMethod = array();
|
||||
$config->todo->getUserObjectsMethod['bug'] = 'ajaxGetUserBugs';
|
||||
$config->todo->getUserObjectsMethod['task'] = 'ajaxGetUserTasks';
|
||||
$config->todo->getUserObjectsMethod['story'] = 'ajaxGetUserStories';
|
||||
$config->todo->getUserObjectsMethod['testtask'] = 'ajaxGetUserTestTasks';
|
||||
$config->todo->getUserObjectsMethod['review'] = 'ajaxGetUserReviews';
|
||||
|
||||
@@ -25,44 +25,12 @@ function loadList(type, id)
|
||||
|
||||
var param = 'userID=' + userID;
|
||||
if(id) param += '&id=' + id;
|
||||
if(type == 'bug')
|
||||
if(moduleList.indexOf(type) !== -1)
|
||||
{
|
||||
link = createLink('bug', 'ajaxGetUserBugs', param);
|
||||
}
|
||||
else if(type == 'task')
|
||||
{
|
||||
link = createLink('task', 'ajaxGetUserTasks', param);
|
||||
}
|
||||
else if(type == 'story')
|
||||
{
|
||||
link = createLink('story', 'ajaxGetUserStories', param);
|
||||
}
|
||||
else if(type == 'issue')
|
||||
{
|
||||
link = createLink('issue', 'ajaxGetUserIssues', param);
|
||||
}
|
||||
else if(type == 'risk')
|
||||
{
|
||||
link = createLink('risk', 'ajaxGetUserRisks', param);
|
||||
}
|
||||
else if(type == 'opportunity')
|
||||
{
|
||||
link = createLink('opportunity', 'ajaxGetUseropportunities', param);
|
||||
}
|
||||
else if(type == 'testtask')
|
||||
{
|
||||
link = createLink('testtask', 'ajaxGetUserTestTasks', param);
|
||||
}
|
||||
else if(type == 'review')
|
||||
{
|
||||
link = createLink('review', 'ajaxGetUserReviews', param);
|
||||
}
|
||||
else if(type == 'feedback')
|
||||
{
|
||||
link = createLink('feedback', 'ajaxGetUserFeedback', param);
|
||||
link = createLink(type, objectsMethod[type], param);
|
||||
}
|
||||
|
||||
if(type == 'bug' || type == 'task' || type == 'story' || type == 'issue' || type == 'risk' || type == 'testtask' || type == 'review' || type == 'feedback' || type == 'opportunity')
|
||||
if(moduleList.indexOf(type) !== -1)
|
||||
{
|
||||
$.get(link, function(data, status)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
|
||||
<?php js::set('moduleList', $config->todo->moduleList)?>
|
||||
<?php js::set('objectsMethod', $config->todo->getUserObjectsMethod)?>
|
||||
<form id='todoBatchAddForm' method='post' target='hiddenwin' action='<?php echo $this->createLink('todo', 'batchCreate');?>'>
|
||||
<div id="mainContent">
|
||||
<div class="main-header">
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php js::set('moduleList', $config->todo->moduleList)?>
|
||||
<?php js::set('objectsMethod', $config->todo->getUserObjectsMethod)?>
|
||||
<div id="mainContent" class="main-content">
|
||||
<div class="main-header">
|
||||
<h2><?php echo $lang->todo->common . $lang->colon . $lang->todo->batchEdit;?></h2>
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::set('noTodo', $lang->todo->noTodo);?>
|
||||
<?php js::set('moduleList', $config->todo->moduleList)?>
|
||||
<?php js::set('objectsMethod', $config->todo->getUserObjectsMethod)?>
|
||||
<div id='mainContent' class='main-content'>
|
||||
<div class='center-block'>
|
||||
<div class='main-header'>
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::set('moduleList', $config->todo->moduleList)?>
|
||||
<?php js::set('objectsMethod', $config->todo->getUserObjectsMethod)?>
|
||||
<?php if(common::checkNotCN()):?>
|
||||
<style> label.col-sm-1{width:100px;} </style>
|
||||
<?php endif;?>
|
||||
|
||||
Reference in New Issue
Block a user