Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions ChatJs/js/jquery.chatjs.messageboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ class MessageBoard {

this.$textBox = $("<textarea />").attr("rows", "1").addClass("chat-window-text-box").appendTo($windowTextBoxWrapper);

var otherUserId = this.options.otherUserId;
var serverAdapter = <YatServerAdapter>this.options.adapter.server;

// Altera o status das mensagens para lido.
this.$textBox.focus(function () {
serverAdapter.mudarStatus(otherUserId, 3);
})

this.$textBox.autosize({
callback: ta => {
var messagesHeight = this.options.height - $(ta).outerHeight();
Expand Down Expand Up @@ -338,4 +330,4 @@ $.fn.messageBoard = function(options: MessageBoardOptions) {
});
}
return this;
};
};
12 changes: 2 additions & 10 deletions ChatJs/js/jquery.chatjs.userlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,7 @@ class UserList {
.attr('href', 'javascript:void(0);')
.text('x')
.addClass("profile-close")
.appendTo($userListItem)
.on('click', function (e) {
e.stopPropagation();
if (confirm("Deseja realmente fechar este atendimento?")) {
usrList.options.adapter.server.fecharAtendimento(currentUsrList.Id, userList => {
usrList.populateList(userList);
});
}
});
.appendTo($userListItem);

$("<div/>")
.addClass("content")
Expand Down Expand Up @@ -136,4 +128,4 @@ $.fn.userList = function(options: UserListOptions) {
});
}
return this;
};
};