Added confirmation before deleting messages and moved buttons to top of Inbox. (fixes #4848)

This commit is contained in:
Kathryn Norris
2015-03-13 04:11:35 -07:00
parent 881f70997b
commit 47a05338e5
3 changed files with 10 additions and 4 deletions

View File

@@ -33,6 +33,12 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
group.$save();
group._editing = false;
}
$scope.deleteAllMessages = function() {
if (confirm(window.env.t('confirmDeleteAllMessages'))) {
User.user.ops.clearPMs({});
}
}
// ------ Modals ------