{% end %}
@@ -522,6 +527,20 @@
});
}
+ $("#server_port").focus(function () {
+
+ $('[data-toggle="popover"]').popover();
+ if ($(window).width() < 1000) {
+ $('.port-hint').attr("data-placement", "top")
+ } else {
+ $('.port-hint').attr("data-placement", "right")
+ }
+ $('.port-hint').popover("show");
+ });
+ $("#server_port").focusout(function () {
+ $('.port-hint').popover("hide");
+ });
+
$(document).ready(function () {
webSocket.on('remove_spinner', function () {
document.getElementById("update-spinner").style.visibility = "hidden";
diff --git a/app/translations/en_EN.json b/app/translations/en_EN.json
index da2a083b..233e4ad0 100644
--- a/app/translations/en_EN.json
+++ b/app/translations/en_EN.json
@@ -340,7 +340,9 @@
"yesDeleteFiles": "Yes, delete files",
"shutdownTimeout": "Shutdown Timeout",
"timeoutExplain1": "How long Crafty will wait for your server to shutdown after executing the",
- "timeoutExplain2": "command before it forces the process down."
+ "timeoutExplain2": "command before it forces the process down.",
+ "statsHint1": "The port your server is running on should go here.",
+ "statsHint2": "This does not change the port of your server. You must still change the port in your server config file."
},
"serverConfigHelp": {
"desc": "Here is where you can change the configuration of your server",