Formatting changes

This commit is contained in:
Husman
2016-06-23 19:50:56 -07:00
parent 352ad783e6
commit 56ad8c62ef
2 changed files with 2 additions and 2 deletions

View File

@@ -199,7 +199,6 @@ describe('Tasks Service', function() {
});
describe('cancelTaskEdit', function() {
var task;
beforeEach(function(){

View File

@@ -197,8 +197,9 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
$scope.addChecklistItem = function(task, $event, $index) {
if (task._edit.checklist[$index].text) {
if ($index === task._edit.checklist.length - 1)
if ($index === task._edit.checklist.length - 1) {
task._edit.checklist.push({ completed: false, text: '' });
}
focusChecklist(task._edit, $index + 1);
} else {
// TODO Provide UI feedback that this item is still blank