diff --git a/module/my/control.php b/module/my/control.php index 565f8c10dd..5f2950e160 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -115,7 +115,6 @@ class my extends control $this->view->pager = $pager; $this->view->times = date::buildTimeList($this->config->todo->times->begin, $this->config->todo->times->end, $this->config->todo->times->delta); $this->view->time = date::now(); - $this->view->members = $this->loadModel('user')->getPairs(); $this->view->importFuture = ($type != 'today'); $this->display(); diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index daf815eec9..39e5bea1f4 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -111,7 +111,7 @@ } else { - common::printIcon('todo', 'assignto', "todoID=$todo->id", $todo, 'list', 'hand-right', '', "btn-icon", '', "data-toggle='assigntoModal' data-width='500'", $lang->todo->assignTo); + common::printIcon('todo', 'assignto', "todoID=$todo->id", $todo, 'list', 'hand-right', '', "iframe", false, "data-width='600'"); common::printIcon('todo', 'finish', "id=$todo->id", $todo, 'list', 'checked', 'hiddenwin'); } common::printIcon('todo', 'edit', "id=$todo->id", '', 'list', 'edit', '', 'iframe', true); @@ -166,6 +166,5 @@ - diff --git a/module/todo/control.php b/module/todo/control.php index be5b54e75f..fb80cbcd48 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -287,8 +287,14 @@ class todo extends control if(empty($_POST['assignedTo'])) die(js::error($this->lang->todo->noAssignedTo)); $this->todo->assignTo($todoID); if(dao::isError()) die(js::error(dao::getError())); - die(js::reload('parent')); + die(js::reload('parent.parent')); } + + $this->view->todo = $this->todo->getById($todoID); + $this->view->members = $this->loadModel('user')->getPairs(); + $this->view->times = date::buildTimeList($this->config->todo->times->begin, $this->config->todo->times->end, $this->config->todo->times->delta); + $this->view->time = date::now(); + $this->display(); } /** diff --git a/module/todo/css/assignto.css b/module/todo/css/assignto.css new file mode 100644 index 0000000000..9eba34e7bf --- /dev/null +++ b/module/todo/css/assignto.css @@ -0,0 +1,3 @@ +#end_chosen .chosen-single {border-left: none;} +#begin_chosen .chosen-results, #end_chosen .chosen-results {max-height: 150px} +#todoAssignForm {margin-bottom: 110px;} diff --git a/module/todo/view/assignto.html.php b/module/todo/view/assignto.html.php index 98a831aa64..6b8387140c 100755 --- a/module/todo/view/assignto.html.php +++ b/module/todo/view/assignto.html.php @@ -10,25 +10,31 @@ * @link http://www.zentao.net */ ?> -