Fixed issue #2197: Chat-Widget disappears after close.

This commit is contained in:
Thorsten Eckel 2018-08-23 15:54:50 +02:00
parent ae8fa91260
commit 04e1dc78bd
3 changed files with 3 additions and 6 deletions

View file

@ -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(

View file

@ -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;
} }
}; };

File diff suppressed because one or more lines are too long