mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-22 05:30:05 +00:00
Merge pull request #2 from gsemaj/main
Add default values for server description & IP
This commit is contained in:
commit
1d70e9e3f6
@ -24,8 +24,8 @@ function addServer() {
|
|||||||
|
|
||||||
var server = {};
|
var server = {};
|
||||||
server['uuid'] = uuidv4();
|
server['uuid'] = uuidv4();
|
||||||
server['description'] = $("#addserver-descinput").val();
|
server['description'] = $("#addserver-descinput").val().length == 0 ? "My OpenFusion Server" : $("#addserver-descinput").val();
|
||||||
server['ip'] = $("#addserver-ipinput").val();
|
server['ip'] = $("#addserver-ipinput").val().length == 0 ? "127.0.0.1:23000" : $("#addserver-ipinput").val();
|
||||||
server['version'] = $("#addserver-versionselect option:selected").text();
|
server['version'] = $("#addserver-versionselect option:selected").text();
|
||||||
//server['endpoint'] =
|
//server['endpoint'] =
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user