Commit 6addfdab authored by Sergey Fedoseev's avatar Sergey Fedoseev

fix event prevention on chat restore

parent 94680158
...@@ -3085,10 +3085,14 @@ ...@@ -3085,10 +3085,14 @@
return this; return this;
}, },
restore: _.debounce(function (ev) { restore: function(ev) {
if (ev && ev.preventDefault) { if (ev && ev.preventDefault) {
ev.preventDefault(); ev.preventDefault();
} }
this._restore();
},
_restore: _.debounce(function () {
this.remove(); this.remove();
this.model.maximize(); this.model.maximize();
}, 200) }, 200)
......
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