Fix Bug 33354.
This commit is contained in:
parent
d2df65b0b6
commit
860a8114ec
|
@ -641,6 +641,11 @@ define([
|
|||
$(document).on('keydown.' + this.cid, this.binding.keydown);
|
||||
|
||||
var me = this;
|
||||
|
||||
setTimeout(function () {
|
||||
me.fireEvent('animate:before', me);
|
||||
}, 10);
|
||||
|
||||
if (this.options.animate !== false) {
|
||||
this.$window.css({
|
||||
'-webkit-transform': 'scale(0.8)',
|
||||
|
|
|
@ -473,19 +473,17 @@ define([
|
|||
});
|
||||
me.on({
|
||||
'show': function () {
|
||||
|
||||
// me.calculateSizeOfContent();
|
||||
me.commentsView.autoHeightTextBox();
|
||||
|
||||
var text = me.$window.find('textarea');
|
||||
if (text && text.length)
|
||||
text.focus();
|
||||
|
||||
text.keydown(function (event) {
|
||||
me.$window.find('textarea').keydown(function (event) {
|
||||
if (event.keyCode == Common.UI.Keys.ESC) {
|
||||
me.hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
'animate:before': function () {
|
||||
var text = me.$window.find('textarea');
|
||||
if (text && text.length)
|
||||
text.focus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue