Closing emoji menu on message send

Closes #294
This commit is contained in:
Igor Zhukov 2014-05-30 18:43:33 +04:00
parent 90b650ea52
commit d29eb05b5f
2 changed files with 6 additions and 0 deletions

View File

@ -491,6 +491,7 @@ angular.module('myApp.directives', ['myApp.filters'])
if (submit) {
$(element).trigger('submit');
$(element).trigger('message_send');
return cancelEvent(e);
}
}

View File

@ -498,6 +498,11 @@
}
});
/*! MODIFICATION: Following 3 lines were added by Igor Zhukov, in order to hide menu on message submit with keyboard */
$body.on('message_send', function(e) {
self.hide();
});
$body.on('mouseup', function(e) {
/*! MODIFICATION START
Following code was added by Igor Zhukov, in order to prevent close on click on EmojiMenu scrollbar