Browse Source

Closing emoji menu on message send

Closes #294
master
Igor Zhukov 11 years ago
parent
commit
d29eb05b5f
  1. 1
      app/js/directives.js
  2. 5
      app/vendor/jquery.emojiarea/jquery.emojiarea.js

1
app/js/directives.js

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

5
app/vendor/jquery.emojiarea/jquery.emojiarea.js vendored

@ -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) { $body.on('mouseup', function(e) {
/*! MODIFICATION START /*! MODIFICATION START
Following code was added by Igor Zhukov, in order to prevent close on click on EmojiMenu scrollbar Following code was added by Igor Zhukov, in order to prevent close on click on EmojiMenu scrollbar

Loading…
Cancel
Save