Merge pull request #1013 from awalgarg/patch-1
fix: count only message items for show-more
This commit is contained in:
commit
bb24bc645c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user