Skip to content

Commit

Permalink
Fixing indentions in taskCtrl.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoyner committed Oct 12, 2014
1 parent 36bf09d commit 9afbe42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/js/controllers/tasksCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
$event.preventDefault();
}
}
$scope.swapChecklistItems = function(task, oldIndex, newIndex) {
var toSwap = task.checklist.splice(oldIndex, 1)[0];
task.checklist.splice(newIndex, 0, toSwap);
$scope.saveTask(task, true);
}
$scope.swapChecklistItems = function(task, oldIndex, newIndex) {
var toSwap = task.checklist.splice(oldIndex, 1)[0];
task.checklist.splice(newIndex, 0, toSwap);
$scope.saveTask(task, true);
}
$scope.navigateChecklist = function(task,$index,$event){
focusChecklist(task, $event.keyCode == '40' ? $index+1 : $index-1);
}
Expand Down

0 comments on commit 9afbe42

Please sign in to comment.