Fixes #3377 - chat-no-jquery(.min).js is logging an javascript exception (Uncaught ReferenceError: node is not defined)
This commit is contained in:
parent
3ace03d79b
commit
b8ea658495
3 changed files with 3 additions and 3 deletions
|
@ -931,7 +931,7 @@ do(window) ->
|
||||||
onInput: =>
|
onInput: =>
|
||||||
# remove unread-state from messages
|
# remove unread-state from messages
|
||||||
for message in @el.querySelectorAll('.zammad-chat-message--unread')
|
for message in @el.querySelectorAll('.zammad-chat-message--unread')
|
||||||
node.classList.remove 'zammad-chat-message--unread'
|
message.classList.remove 'zammad-chat-message--unread'
|
||||||
|
|
||||||
sessionStorage.setItem 'unfinished_message', @input.innerHTML
|
sessionStorage.setItem 'unfinished_message', @input.innerHTML
|
||||||
|
|
||||||
|
|
|
@ -1431,7 +1431,7 @@ var extend = function(child, parent) { for (var key in parent) { if (hasProp.cal
|
||||||
ref = this.el.querySelectorAll('.zammad-chat-message--unread');
|
ref = this.el.querySelectorAll('.zammad-chat-message--unread');
|
||||||
for (j = 0, len = ref.length; j < len; j++) {
|
for (j = 0, len = ref.length; j < len; j++) {
|
||||||
message = ref[j];
|
message = ref[j];
|
||||||
node.classList.remove('zammad-chat-message--unread');
|
message.classList.remove('zammad-chat-message--unread');
|
||||||
}
|
}
|
||||||
sessionStorage.setItem('unfinished_message', this.input.innerHTML);
|
sessionStorage.setItem('unfinished_message', this.input.innerHTML);
|
||||||
return this.onTyping();
|
return this.onTyping();
|
||||||
|
|
2
public/assets/chat/chat-no-jquery.min.js
vendored
2
public/assets/chat/chat-no-jquery.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue