add auto-focus when single/multiple is toggled

This commit is contained in:
Bill Parrott
2015-02-19 08:46:45 -06:00
parent c215b90869
commit 98c6526cf7
2 changed files with 4 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
addTask(addTo, listDef, listDef.newTask);
}
delete listDef.newTask;
delete listDef.focus;
};
$scope.toggleBulk = function(list) {
@@ -52,6 +53,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
list.bulk = false;
}
list.bulk = !list.bulk;
list.focus = true;
};
/**