mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 00:12:17 +00:00
better fix #1740
This commit is contained in:
parent
774ded9fb2
commit
63b4e5152e
1 changed files with 2 additions and 1 deletions
|
|
@ -83,13 +83,14 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
|||
$scope._sending = false;
|
||||
|
||||
$scope.postChat = function(group, message){
|
||||
console.log($scope._sending)
|
||||
if (_.isEmpty(message) || $scope._sending) return;
|
||||
$scope._sending = true;
|
||||
group.$postChat({message:message}, function(data){
|
||||
group.chat = data.chat;
|
||||
$scope._chatMessage = '';
|
||||
$scope._sending = false;
|
||||
}, function(err){
|
||||
$scope._sending = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue