Wrap join button in a td

This commit is contained in:
Jiiks 2015-10-28 00:13:23 +02:00
parent fe09c506c5
commit 5c53da2dbe
3 changed files with 7 additions and 8 deletions

View File

@ -422,7 +422,7 @@ PublicServers.prototype.addServer = function(name, code, title, language, descri
tr.append(desc);
tr.append($("<button/>", {
tr.append($("<td/>").append($("<button/>", {
text: "Join",
css: {
"width": "100%",
@ -435,12 +435,11 @@ PublicServers.prototype.addServer = function(name, code, title, language, descri
"color": "#EDEDED"
},
click: function() { self.joinServer(code); }
}));
})));
tableBody.append(tr);
};
PublicServers.prototype.show = function() {
this.getPanel().toggle();
var li = $("#bd-pub-li");
@ -457,7 +456,7 @@ PublicServers.prototype.joinServer = function(code) {
$(".action.join .btn").click();
$(".create-guild-container input").val(code);
$(".form.join-server .btn-primary").click();
}
};
/* BetterDiscordApp QuickEmoteMenu JavaScript
* Version: 1.3

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -127,7 +127,7 @@ PublicServers.prototype.addServer = function(name, code, title, language, descri
tr.append(desc);
tr.append($("<button/>", {
tr.append($("<td/>").append($("<button/>", {
text: "Join",
css: {
"width": "100%",
@ -140,7 +140,7 @@ PublicServers.prototype.addServer = function(name, code, title, language, descri
"color": "#EDEDED"
},
click: function() { self.joinServer(code); }
}));
})));
tableBody.append(tr);
};
@ -161,4 +161,4 @@ PublicServers.prototype.joinServer = function(code) {
$(".action.join .btn").click();
$(".create-guild-container input").val(code);
$(".form.join-server .btn-primary").click();
}
};