Make controlbox appear in a smoother fashion in webkit
when clicking the controlbox toggle
This commit is contained in:
parent
d0af974206
commit
680548612c
@ -1631,7 +1631,6 @@
|
|||||||
hide: function (callback) {
|
hide: function (callback) {
|
||||||
this.$el.hide('fast', function () {
|
this.$el.hide('fast', function () {
|
||||||
converse.controlboxtoggle.show(function () {
|
converse.controlboxtoggle.show(function () {
|
||||||
converse.refresh();
|
|
||||||
if (typeof callback === "function") {
|
if (typeof callback === "function") {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
@ -1640,10 +1639,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
show: function () {
|
show: function () {
|
||||||
converse.controlboxtoggle.hide();
|
converse.controlboxtoggle.hide($.proxy(function () {
|
||||||
if (this.$el.is(':visible') && this.$el.css('opacity') == "1") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (converse.animate) {
|
if (converse.animate) {
|
||||||
this.$el.css({'opacity': 0, 'display': 'inline'}).animate({opacity: '1'}, 200, null, function () {
|
this.$el.css({'opacity': 0, 'display': 'inline'}).animate({opacity: '1'}, 200, null, function () {
|
||||||
converse.refresh();
|
converse.refresh();
|
||||||
@ -1657,6 +1653,7 @@
|
|||||||
this.model.save();
|
this.model.save();
|
||||||
}
|
}
|
||||||
converse.emit('onControlBoxOpened', this);
|
converse.emit('onControlBoxOpened', this);
|
||||||
|
}, this));
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user