Fix indents

This commit is contained in:
Akkadius 2017-09-21 22:23:52 -05:00
parent 671919be1b
commit ddc7d11c99
1 changed files with 34 additions and 34 deletions

View File

@ -16,44 +16,44 @@
<script type="text/javascript"> <script type="text/javascript">
function process_action(action) { function process_action(action) {
switch (action) { switch (action) {
case "stop": case "stop":
modal( modal(
"Are you sure you want to stop server?", "Are you sure you want to stop server?",
"Stopping the server can be service affecting! Are you sure?", "Stopping the server can be service affecting! Are you sure?",
'<button type="button" class="btn btn-link waves-effect" onclick="process_action(\'confirm_stop\')">STOP SERVER</button>' '<button type="button" class="btn btn-link waves-effect" onclick="process_action(\'confirm_stop\')">STOP SERVER</button>'
); );
break; break;
case "confirm_stop": case "confirm_stop":
$('#body-content .btn').attr('disabled', true); $('#body-content .btn').attr('disabled', true);
$.post( "/dhcp_start_stop_restart", "action=stop", function( data ) { $.post("/dhcp_start_stop_restart", "action=stop", function (data) {
$( "#dhcp_start_stop_restart_result" ).html( data ); $("#dhcp_start_stop_restart_result").html(data);
}); });
break; break;
case "restart": case "restart":
modal( modal(
"Are you sure you want to restart the server?", "Are you sure you want to restart the server?",
"Restarting the server can cause very brief interruption. Are you sure?", "Restarting the server can cause very brief interruption. Are you sure?",
'<button type="button" class="btn btn-link waves-effect" onclick="process_action(\'confirm_restart\')">RESTART SERVER</button>' '<button type="button" class="btn btn-link waves-effect" onclick="process_action(\'confirm_restart\')">RESTART SERVER</button>'
); );
break; break;
case "confirm_restart": case "confirm_restart":
$('#body-content .btn').attr('disabled', true); $('#body-content .btn').attr('disabled', true);
$.post( "/dhcp_start_stop_restart", "action=restart", function( data ) { $.post("/dhcp_start_stop_restart", "action=restart", function (data) {
$( "#dhcp_start_stop_restart_result" ).html( data ); $("#dhcp_start_stop_restart_result").html(data);
}); });
break; break;
case "start": case "start":
$('#body-content .btn').attr('disabled', true); $('#body-content .btn').attr('disabled', true);
$.post( "/dhcp_start_stop_restart", "action=start", function( data ) { $.post("/dhcp_start_stop_restart", "action=start", function (data) {
$( "#dhcp_start_stop_restart_result" ).html( data ); $("#dhcp_start_stop_restart_result").html(data);
}); });
break; break;
default: default:
break; break;
} }
} }
</script> </script>