* task#120, task#105.
This commit is contained in:
@@ -118,6 +118,17 @@ class todo extends control
|
||||
public function mark($todoID, $status)
|
||||
{
|
||||
$this->todo->mark($todoID, $status);
|
||||
$todo = $this->todo->getById($todoID);
|
||||
if($todo->status == 'done')
|
||||
{
|
||||
if($todo->type == 'bug' or $todo->type == 'task')
|
||||
{
|
||||
$confirmNote = 'confirm' . ucfirst($todo->type);
|
||||
$confirmURL = $this->createLink($todo->type, 'view', "id=$todo->idvalue");
|
||||
$cancelURL = $this->server->HTTP_REFERER;
|
||||
die(js::confirm(sprintf($this->lang->todo->$confirmNote, $todo->idvalue), $confirmURL, $cancelURL, 'parent', 'parent'));
|
||||
}
|
||||
}
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,8 @@ $lang->todo->week = '星期';
|
||||
$lang->todo->today = '今天';
|
||||
$lang->todo->weekDateList = '一,二,三,四,五,六,天';
|
||||
$lang->todo->dayInFeature = '暂不指定';
|
||||
$lang->todo->confirmBug = '该Todo关联的是Bug #%s,需要修改它吗?';
|
||||
$lang->todo->confirmTask = '该Todo关联的是Task #%s,需要修改它吗?';
|
||||
|
||||
$lang->todo->statusList['wait'] = '未开始';
|
||||
$lang->todo->statusList['doing'] = '进行中';
|
||||
|
||||
Reference in New Issue
Block a user