...
|
...
|
@@ -184,6 +184,7 @@ let chat = { |
|
|
*/
|
|
|
bindEvents: function() {
|
|
|
let self = this;
|
|
|
let $dialog;
|
|
|
|
|
|
this.$chat
|
|
|
.on('click.Queue.quit', '[data-trigger=quit-queue]', function() {
|
...
|
...
|
@@ -198,6 +199,12 @@ let chat = { |
|
|
socket.send(JSON.stringify(cmEntity));
|
|
|
dialog.hideDialog();
|
|
|
});
|
|
|
|
|
|
$dialog = $('.dialog-wrapper .dialog-box');
|
|
|
$dialog.css({
|
|
|
background: 'background: hsla(100, 100%, 100%, 1)'
|
|
|
});
|
|
|
|
|
|
})
|
|
|
.on('click.Chat.end', '[data-trigger=end-chat]', function() {
|
|
|
dialog.showDialog({
|
...
|
...
|
@@ -211,6 +218,11 @@ let chat = { |
|
|
socket.send(JSON.stringify(cmEntity));
|
|
|
dialog.hideDialog();
|
|
|
});
|
|
|
|
|
|
$dialog = $('.dialog-wrapper .dialog-box');
|
|
|
$dialog.css({
|
|
|
background: 'background: hsla(100, 100%, 100%, 1)'
|
|
|
});
|
|
|
})
|
|
|
.on('click.Chat.end', '[data-action=re-connect]', function() {
|
|
|
self.connect();
|
...
|
...
|
|