Fixed send inline sticker

This commit is contained in:
Igor Zhukov 2016-04-20 21:03:27 +03:00
parent 6b9e9c06a4
commit e08ae04e47
2 changed files with 9 additions and 4 deletions

View File

@ -744,10 +744,15 @@ MessageComposer.prototype.setUpAutoComplete = function () {
var self = this;
this.autoCompleteEl.on('mousedown', function (e) {
e = e.originalEvent || e;
var target = $(e.target), mention, code, command, inlineID;
if (target[0].tagName != 'A') {
target = $(target[0].parentNode);
var target = e.target;
var mention, code, command, inlineID;
while (target && target.tagName != 'A') {
target = target.parentNode;
}
if (!target) {
return cancelEvent(e);
}
target = $(target);
if (code = target.attr('data-code')) {
if (self.onEmojiSelected) {
self.onEmojiSelected(code, true);

View File

@ -1983,7 +1983,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
$timeout(function () {
delete historyDoc.progress;
});
console.log('file save done');
// console.log('file save done');
}, function (e) {
console.log('document download failed', e);
historyDoc.progress.enabled = false;