Fixes method terminating in player.html & analysis.html

This commit is contained in:
Fuzzlemann 2017-07-27 15:46:43 +02:00
parent 0f530b6e61
commit fc3f7c96f7
3 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,7 @@ public class ListCommand extends SubCommand {
// Link // Link
String url = HtmlUtils.getServerAnalysisUrlWithProtocol().replace("server", "players"); String url = HtmlUtils.getServerAnalysisUrlWithProtocol().replace("server", "players");
String message = Phrase.CMD_LINK + ""; String message = Phrase.CMD_LINK.toString();
boolean console = !CommandUtils.isPlayer(sender); boolean console = !CommandUtils.isPlayer(sender);
if (console) { if (console) {
sender.sendMessage(message + url); sender.sendMessage(message + url);
@ -76,6 +76,6 @@ public class ListCommand extends SubCommand {
sender.sendMessage(message); sender.sendMessage(message);
sender.sendLink(" ", Phrase.CMD_CLICK_ME.toString(), url); sender.sendLink(" ", Phrase.CMD_CLICK_ME.toString(), url);
} }
sender.sendMessage(Phrase.CMD_FOOTER + ""); sender.sendMessage(Phrase.CMD_FOOTER.toString());
} }
} }

View File

@ -855,8 +855,8 @@
var x = document.getElementById("main"); var x = document.getElementById("main");
x.style.transform = "translate3d(0px,0px,0)"; x.style.transform = "translate3d(0px,0px,0)";
x.style.width = "" + navButtons.length * 100 + "%"; x.style.width = "" + navButtons.length * 100 + "%";
for (i = 0; i < navButtons.length; i++) { for (var i = 0; i < navButtons.length; i++) {
navButtons[i].onclick = openFunc(i) navButtons[i].onclick = openFunc(i);
tabs[i].style.width = "" + 100 / navButtons.length + "%"; tabs[i].style.width = "" + 100 / navButtons.length + "%";
} }
x.style.opacity = "1"; x.style.opacity = "1";

View File

@ -582,8 +582,8 @@
x.style.transform = "translate3d(0px,0px,0)"; x.style.transform = "translate3d(0px,0px,0)";
x.style.width = ""+navButtons.length*100+"%"; x.style.width = ""+navButtons.length*100+"%";
for (i=0; i < navButtons.length; i++) { for (var i = 0; i < navButtons.length; i++) {
navButtons[i].onclick = openFunc(i) navButtons[i].onclick = openFunc(i);
tabs[i].style.width = ""+100/navButtons.length+"%"; tabs[i].style.width = ""+100/navButtons.length+"%";
} }
x.style.opacity = "1"; x.style.opacity = "1";