add previewMarkdown / click as popover-trigger / misc changes

This commit is contained in:
Negue
2015-04-27 19:23:56 +02:00
parent 78dd949f20
commit 75579a7c36
5 changed files with 25 additions and 11 deletions

View File

@@ -347,8 +347,10 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
};
$scope.copyToDo = function(message) {
var taskNotes = '[' + message.user + '](' + env.BASE_URL + '/static/front/#?memberId=' + message.uuid +
') wrote in [' + $scope.group.name + '](' + window.location.href + ')';
var taskNotes = env.t("messageWroteIn", {
user: '[' + message.user + '](' + env.BASE_URL + '/static/front/#?memberId=' + message.uuid + ')',
group: '[' + $scope.group.name + '](' + window.location.href + ')'
});
var newScope = $scope.$new();
newScope.text = message.text;