mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Formatting changes
This commit is contained in:
parent
352ad783e6
commit
56ad8c62ef
2 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,6 @@ describe('Tasks Service', function() {
|
|||
});
|
||||
|
||||
describe('cancelTaskEdit', function() {
|
||||
|
||||
var task;
|
||||
|
||||
beforeEach(function(){
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue