rename website/client to website/client-old

This commit is contained in:
Matteo Pagliazzi
2016-09-14 15:06:32 +02:00
parent 555ddbbe4c
commit 4b48b7a5f6
353 changed files with 57 additions and 57 deletions

View File

@@ -0,0 +1,31 @@
'use strict';
habitrpg.controller('InboxCtrl', ['$scope', '$rootScope',
function ($scope, $rootScope) {
$scope.copyToDo = function (message) {
var messageUser;
if (message.uuid == 'system') {
messageUser = 'system';
} else {
messageUser = message.user;
}
var newScope = $scope.$new();
newScope.notes = env.t('taskFromInbox', {
from: messageUser,
message: message.text
});
newScope.text = env.t('taskTextFromInbox', {
from: messageUser
});
$rootScope.openModal('copyChatToDo',{
controller: 'CopyMessageModalCtrl',
scope: newScope
});
};
}
]);