fix event prevention on chat restore

This commit is contained in:
Sergey Fedoseev 2014-10-09 20:32:24 +06:00
parent 946801581e
commit 6addfdabb0

View File

@ -3085,10 +3085,14 @@
return this;
},
restore: _.debounce(function (ev) {
restore: function(ev) {
if (ev && ev.preventDefault) {
ev.preventDefault();
}
this._restore();
},
_restore: _.debounce(function () {
this.remove();
this.model.maximize();
}, 200)