diff --git a/app/js/directives.js b/app/js/directives.js index 84d5f553..cbc9b10a 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1128,7 +1128,7 @@ angular.module('myApp.directives', ['myApp.filters']) updateValue(); $scope.draftMessage.send(); $(element).trigger('message_send'); - resetAfterSubmit(); + resetTyping(); return cancelEvent(e); } } @@ -1140,7 +1140,7 @@ angular.module('myApp.directives', ['myApp.filters']) updateValue(); $scope.draftMessage.send(); $(element).trigger('message_send'); - resetAfterSubmit(); + resetTyping(); return cancelEvent(e); }); @@ -1158,7 +1158,7 @@ angular.module('myApp.directives', ['myApp.filters']) } }); - function resetAfterSubmit () { + function resetTyping () { lastTyping = 0; lastLength = 0; }; @@ -1169,6 +1169,7 @@ angular.module('myApp.directives', ['myApp.filters']) var html = $('