mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
fix chart shown below task edit form
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user