Commit 860a8114 authored by Julia Radzhabova's avatar Julia Radzhabova

Fix Bug 33354.

parent d2df65b0
...@@ -641,6 +641,11 @@ define([ ...@@ -641,6 +641,11 @@ define([
$(document).on('keydown.' + this.cid, this.binding.keydown); $(document).on('keydown.' + this.cid, this.binding.keydown);
var me = this; var me = this;
setTimeout(function () {
me.fireEvent('animate:before', me);
}, 10);
if (this.options.animate !== false) { if (this.options.animate !== false) {
this.$window.css({ this.$window.css({
'-webkit-transform': 'scale(0.8)', '-webkit-transform': 'scale(0.8)',
......
...@@ -473,19 +473,17 @@ define([ ...@@ -473,19 +473,17 @@ define([
}); });
me.on({ me.on({
'show': function () { 'show': function () {
// me.calculateSizeOfContent();
me.commentsView.autoHeightTextBox(); me.commentsView.autoHeightTextBox();
me.$window.find('textarea').keydown(function (event) {
var text = me.$window.find('textarea');
if (text && text.length)
text.focus();
text.keydown(function (event) {
if (event.keyCode == Common.UI.Keys.ESC) { if (event.keyCode == Common.UI.Keys.ESC) {
me.hide(); me.hide();
} }
}); });
},
'animate:before': function () {
var text = me.$window.find('textarea');
if (text && text.length)
text.focus();
} }
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment