mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
parent
4ddb5d5b7d
commit
b3e57a013f
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ socket.on("sync_sort", function(data) {
|
|||
|
||||
if (type === "networks") {
|
||||
$.each(order, function(index, value) {
|
||||
const position = $(container.children()[index]);
|
||||
const position = $(container.children(".network")[index]);
|
||||
|
||||
if (position.data("id") === value) { // Network in correct place
|
||||
return true; // No point in continuing
|
||||
|
@ -32,7 +32,7 @@ socket.on("sync_sort", function(data) {
|
|||
return true; // same as `continue` -> skip to next item
|
||||
}
|
||||
|
||||
const position = $(network.children()[index]); // Target channel at position
|
||||
const position = $(network.children(".chan")[index]); // Target channel at position
|
||||
|
||||
if (position.data("id") === value) { // Channel in correct place
|
||||
return true; // No point in continuing
|
||||
|
|
Loading…
Reference in a new issue