Authored by 陈轩

im fix

... ... @@ -166,6 +166,14 @@ var chat = {
.on('click.chat.switchServer', '[data-action=change-human]', function() {
self.canManualService && self.switchService('human');
})
.on('focus.chat.sendText', '.text-in', function() {
$('.menu').hide();
resizeFooter();
setTimeout(()=>{
$('#chat-footer')[0].scrollIntoView();
}, 0);
})
.on('keydown.chat.sendText', '.text-in', function(event) {
event.stopPropagation();
document.body.scrollTop = document.body.scrollHeight;
... ...
... ... @@ -25,10 +25,12 @@ LeaveMSGView.prototype = $.extend({}, EventEmitter.prototype, {
let self = this;
this.$elem
.on('click', '.chat-page-back', function() {
.on('click', '.chat-page-back', function(event) {
event.stopPropagation();
self.toggleHide(true);
})
.on('click.LeavseMSG.submit', '.leave-submit', function() {
event.stopPropagation();
self.submit();
});
... ... @@ -42,7 +44,7 @@ LeaveMSGView.prototype = $.extend({}, EventEmitter.prototype, {
toggleHide(willHide) {
this.$elem.toggleClass('chat-page-hide', willHide);
return this;
return false;
},
/**
... ... @@ -101,6 +103,8 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, {
this.elem
.on('click.RatingView.rating', '.stars i', function(event) {
event.stopPropagation();
let starVal = $(this).index();
self.rating(starVal);
... ... @@ -169,6 +173,8 @@ RatingView.prototype = $.extend({}, EventEmitter.prototype, {
}
this.elem.toggle(willShow);
this.rating(4);
return false;
}
});
... ... @@ -202,10 +208,12 @@ OrderListView.prototype = $.extend({}, EventEmitter.prototype, {
const self = this;
this.$elem
.on('click.OrderListView.back', '.chat-page-back', function() {
.on('click.OrderListView.back', '.chat-page-back', function(event) {
event.stopPropagation();
self.toggleHide(true);
})
.on('click.OrderListView.select', '[data-action=select]', function() {
.on('click.OrderListView.select', '[data-action=select]', function(event) {
event.stopPropagation();
self.selectOrder($(event.target));
});
... ...