fix chart shown below task edit form

This commit is contained in:
Matteo Pagliazzi
2013-10-21 20:41:19 +02:00
parent cc05926e6b
commit c4882942d6
3 changed files with 11 additions and 3 deletions

View File

@@ -70,6 +70,13 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User', '
op: "revive"
});
};
$scope.toggleEdit = function(task){
console.log(task)
task._editing = !task._editing;
if($rootScope.charts[task.id]) $rootScope.charts[task.id] = false;
};
$scope.remove = function(task) {
var tasks;
if (confirm("Are you sure you want to delete this task?") !== true) {
@@ -82,6 +89,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User', '
});
tasks.splice(tasks.indexOf(task), 1);
};
/*
------------------------
Items