master
yixian 4 years ago
parent 5a2533c289
commit 89bbdc5c6e

@ -106,6 +106,10 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
$scope.currentTasks = [];
}
$scope.editTask = function (task) {
$scope.editingTask = task;
}
$scope.newTask = function () {
$uibModal.open({
size: 'lg',

@ -53,7 +53,7 @@
ng-click="task.display_detail=!task.display_detail"><i class="fa fa-search"></i>
</button>
<button class="btn btn-primary" ng-if="!task.plan" type="button" title="Edit"
ng-click="editingTask=task"><i class="fa fa-edit"></i></button>
ng-click="editTask(task)"><i class="fa fa-edit"></i></button>
<button class="btn btn-danger" type="button" title="Drop" ng-click="dropTask(task)"><i
class="fa fa-trash"></i></button>
</div>

Loading…
Cancel
Save