diff --git a/public/js/controllers/tasksCtrl.js b/public/js/controllers/tasksCtrl.js index 0616f01e6e..f2d82ff08b 100644 --- a/public/js/controllers/tasksCtrl.js +++ b/public/js/controllers/tasksCtrl.js @@ -36,13 +36,10 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N $scope.score(task, "down"); } }; - /* TODO this should be somewhere else, but fits the html location better here - */ $scope.removeTask = function(list, $index) { if (!confirm("Are you sure you want to delete this task?")) return; User.user.ops.deleteTask({params:{id:list[$index].id}}) - list.splice($index, 1); }; $scope.saveTask = function(task) { diff --git a/views/options/social/chat-box.jade b/views/options/social/chat-box.jade index 7a89b7010e..3d55599b8b 100644 --- a/views/options/social/chat-box.jade +++ b/views/options/social/chat-box.jade @@ -1,6 +1,6 @@ form.chat-form(ng-submit='postChat(group,message.content)') .-options - //FIXME ng-model makes this painfully slow! using jquery for now, which is really non-angular-like + //FIXME ng-model makes this painfully slow! using jquery for now, which is really non-angular-like .control-group.option-large(ng-controller='AutocompleteCtrl') textarea.chat-textarea.option-content(style='height:6em;', ui-keypress='{13:"postChat(group,message.content)"}', ng-model='message.content', updateinterval='250', flag='@', at-user, auto-complete) span.user-list(ng-show='!isAtListHidden')