Merge pull request #138 from megamit/master
Fix for random doubling of public server button
This commit is contained in:
commit
a5923eb8ab
|
@ -165,7 +165,7 @@ Core.prototype.init = function() {
|
||||||
console.log(new Date().getTime() + " Defer");
|
console.log(new Date().getTime() + " Defer");
|
||||||
if($(".guilds-wrapper .guilds").children().length > 0) {
|
if($(".guilds-wrapper .guilds").children().length > 0) {
|
||||||
console.log(new Date().getTime() + " Defer Loaded");
|
console.log(new Date().getTime() + " Defer Loaded");
|
||||||
var guilds = $(".guilds li:first-child");
|
var guilds = $(".guilds>li:first-child");
|
||||||
|
|
||||||
guilds.after($("<li></li>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px", "border-radius": "4px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px", "font-size": "12px" }, text: "public", id: "bd-pub-button" })))));
|
guilds.after($("<li></li>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px", "border-radius": "4px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px", "font-size": "12px" }, text: "public", id: "bd-pub-button" })))));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue