mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Formatting changes
This commit is contained in:
@@ -199,7 +199,6 @@ describe('Tasks Service', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('cancelTaskEdit', function() {
|
describe('cancelTaskEdit', function() {
|
||||||
|
|
||||||
var task;
|
var task;
|
||||||
|
|
||||||
beforeEach(function(){
|
beforeEach(function(){
|
||||||
|
|||||||
@@ -197,8 +197,9 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||||||
|
|
||||||
$scope.addChecklistItem = function(task, $event, $index) {
|
$scope.addChecklistItem = function(task, $event, $index) {
|
||||||
if (task._edit.checklist[$index].text) {
|
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: '' });
|
task._edit.checklist.push({ completed: false, text: '' });
|
||||||
|
}
|
||||||
focusChecklist(task._edit, $index + 1);
|
focusChecklist(task._edit, $index + 1);
|
||||||
} else {
|
} else {
|
||||||
// TODO Provide UI feedback that this item is still blank
|
// TODO Provide UI feedback that this item is still blank
|
||||||
|
|||||||
Reference in New Issue
Block a user