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

@@ -77,7 +77,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
default:
$rootScope.charts[id] = !$rootScope.charts[id];
history = task.history;
if (task) task._editing = false;
if (task && task._editing) task._editing = false;
}
matrix = [['Date', 'Score']];
_.each(history, function(obj) {