Split out group controllers into separate files

This commit is contained in:
Blade Barringer
2015-08-19 08:20:13 -05:00
parent b902ff63a2
commit 0eb61a5bec
9 changed files with 489 additions and 499 deletions

View File

@@ -0,0 +1,17 @@
'use strict';
habitrpg.controller("CopyMessageModalCtrl", ['$scope', 'User', 'Notification',
function($scope, User, Notification){
$scope.saveTodo = function() {
var newTask = {
text: $scope.text,
type: 'todo',
notes: $scope.notes
};
User.user.ops.addTask({body:newTask});
Notification.text(window.env.t('messageAddedAsToDo'));
$scope.$close();
}
}]);