Fixed bd server join button

This commit is contained in:
Jiiks 2016-12-05 22:05:48 +02:00
parent 9a2b4fb8b2
commit 2039252e69
2 changed files with 11 additions and 3 deletions

View File

@ -960,7 +960,7 @@ PublicServers.prototype.show = function () {
});
$("button[data-server-invite-code=0Tmfo5ZbORCRqbAd]").off("click").on("click", function(){
self.joinServer("0Tmfo5ZbORCRqbAd");
self.joinServerDirect("0Tmfo5ZbORCRqbAd");
});
};
@ -1132,6 +1132,14 @@ PublicServers.prototype.joinServer = function (code) {
this.hide();
};
PublicServers.prototype.joinServerDirect = function(code) {
$(".guilds-add").click();
$(".action.join .btn").click();
$(".create-guild-container input").val(code);
$(".form.join-server .btn-primary").click();
this.hide();
};
PublicServers.prototype.escape = function(unsafe) {
if(unsafe === undefined) return "";

4
js/main.min.js vendored

File diff suppressed because one or more lines are too long