Merge pull request #1013 from awalgarg/patch-1

fix: count only message items for show-more
This commit is contained in:
Pavel Djundik 2017-04-06 06:43:29 +03:00 committed by GitHub
commit bb24bc645c
1 changed files with 1 additions and 1 deletions

View File

@ -1189,7 +1189,7 @@ $(function() {
chat.on("click", ".show-more-button", function() { chat.on("click", ".show-more-button", function() {
var self = $(this); var self = $(this);
var count = self.parent().next(".messages").children().length; var count = self.parent().next(".messages").children(".msg").length;
socket.emit("more", { socket.emit("more", {
target: self.data("id"), target: self.data("id"),
count: count count: count