From 34d5e81b7a195a73d102652cb3f49bcbace78724 Mon Sep 17 00:00:00 2001
From: Dane Everitt
Date: Thu, 16 Mar 2017 20:29:48 -0400
Subject: [PATCH] Fix new server page display
---
public/themes/pterodactyl/js/admin/new-server.js | 9 ++-------
resources/themes/pterodactyl/admin/servers/new.blade.php | 9 +++------
2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/public/themes/pterodactyl/js/admin/new-server.js b/public/themes/pterodactyl/js/admin/new-server.js
index 3e82cb1ad..f3de55bee 100644
--- a/public/themes/pterodactyl/js/admin/new-server.js
+++ b/public/themes/pterodactyl/js/admin/new-server.js
@@ -162,11 +162,6 @@ $('#pOptionId').on('change', function (event) {
$('#pStartup').val(_.get(objectChain, 'startup'));
}
- if (!_.get(objectChain, 'executable', false)) {
- $('#pStartupExecutable').html(_.get(parentChain, 'executable', 'ERROR: Exec Not Defined!'));
- } else {
- $('#pStartupExecutable').html(_.get(objectChain, 'executable'));
- }
$('#pPackId').html('').select2({
data: [{ id: 0, text: 'No Service Pack' }].concat(
$.map(_.get(objectChain, 'packs', []), function (item, i) {
@@ -186,8 +181,8 @@ $('#pOptionId').on('change', function (event) {
' + isRequired + item.name + ' \
\
' + item.description + ' \
- Access in Startup: @{{' + item.env_variable + '}}
\
- Validation Regex: ' + item.regex + '
\
+ Access in Startup: {{' + item.env_variable + '}}
\
+ Validation Rules: ' + item.rules + '
\
\
';
$('#appendVariablesTo').append(dataAppend);
diff --git a/resources/themes/pterodactyl/admin/servers/new.blade.php b/resources/themes/pterodactyl/admin/servers/new.blade.php
index fbb0868d6..55c6c6cad 100644
--- a/resources/themes/pterodactyl/admin/servers/new.blade.php
+++ b/resources/themes/pterodactyl/admin/servers/new.blade.php
@@ -147,14 +147,14 @@