From f7736a07a3cec4800052933080c035b9e4b210ab Mon Sep 17 00:00:00 2001 From: Gent S Date: Wed, 23 Dec 2020 11:12:48 -0500 Subject: [PATCH] Add default values for server description & IP --- resources/app/files/assets/js/serverselector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/app/files/assets/js/serverselector.js b/resources/app/files/assets/js/serverselector.js index fe149fc..a25b2b0 100644 --- a/resources/app/files/assets/js/serverselector.js +++ b/resources/app/files/assets/js/serverselector.js @@ -24,8 +24,8 @@ function addServer() { var server = {}; server['uuid'] = uuidv4(); - server['description'] = $("#addserver-descinput").val(); - server['ip'] = $("#addserver-ipinput").val(); + server['description'] = $("#addserver-descinput").val().length == 0 ? "My OpenFusion Server" : $("#addserver-descinput").val(); + server['ip'] = $("#addserver-ipinput").val().length == 0 ? "127.0.0.1:23000" : $("#addserver-ipinput").val(); server['version'] = $("#addserver-versionselect option:selected").text(); //server['endpoint'] =