Fixed issue #2197: Chat-Widget disappears after close.
This commit is contained in:
parent
ae8fa91260
commit
04e1dc78bd
3 changed files with 3 additions and 6 deletions
|
@ -1223,10 +1223,9 @@ do($ = window.jQuery, window) ->
|
||||||
document.getElementsByTagName('head')[0].appendChild(newSS)
|
document.getElementsByTagName('head')[0].appendChild(newSS)
|
||||||
|
|
||||||
onCssLoaded: =>
|
onCssLoaded: =>
|
||||||
|
@cssLoaded = true
|
||||||
if @socketReady
|
if @socketReady
|
||||||
@onReady()
|
@onReady()
|
||||||
else
|
|
||||||
@cssLoaded = true
|
|
||||||
|
|
||||||
startTimeoutObservers: =>
|
startTimeoutObservers: =>
|
||||||
@idleTimeout = new Timeout(
|
@idleTimeout = new Timeout(
|
||||||
|
|
|
@ -1562,10 +1562,9 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
|
||||||
};
|
};
|
||||||
|
|
||||||
ZammadChat.prototype.onCssLoaded = function() {
|
ZammadChat.prototype.onCssLoaded = function() {
|
||||||
|
this.cssLoaded = true;
|
||||||
if (this.socketReady) {
|
if (this.socketReady) {
|
||||||
return this.onReady();
|
return this.onReady();
|
||||||
} else {
|
|
||||||
return this.cssLoaded = true;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
3
public/assets/chat/chat.min.js
vendored
3
public/assets/chat/chat.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue