Updated for latest Discord version

This commit is contained in:
Jiiks 2016-06-24 02:12:41 +03:00
parent 849c139124
commit ef3d2ad9b1
1 changed files with 8 additions and 7 deletions

View File

@ -14,12 +14,13 @@ dblClickEdit.prototype.start = function () {
var opt = msg.find(".btn-option"); var opt = msg.find(".btn-option");
opt.click(); opt.click();
var popout = $(".option-popout"); $.each($(".popout .btn-item"), (index, value) => {
if(popout.children().length == 2) { var option = $(value);
popout.children().first().click(); if(option.text() === "Edit") {
} else { option.click();
popout.hide();
} }
});
} }
}); });
}; };