From 63b4e5152ee9e9c5b32aa9cda028ee576e8d4860 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Mon, 4 Nov 2013 15:21:05 +0100 Subject: [PATCH] better fix #1740 --- public/js/controllers/groupsCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/controllers/groupsCtrl.js b/public/js/controllers/groupsCtrl.js index 660d0915dc..a23093142b 100644 --- a/public/js/controllers/groupsCtrl.js +++ b/public/js/controllers/groupsCtrl.js @@ -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; }); }