Skip to content

Commit

Permalink
Corrected some variables names and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyts committed Oct 14, 2020
1 parent 60fa626 commit 9459c7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private List<CtxSession> GetCurrentSessions(string SiteName, string AdminAddress
IdleSince = obj.Properties["IdleSince"].Value.ToString();
}
RestartSupported = "False";
if (OSType.IndexOf("20", StringComparison.CurrentCultureIgnoreCase) < 0 && SessionSupport == "SingleSession")
if (OSType.IndexOf("Windows", StringComparison.CurrentCultureIgnoreCase) >= 0 && OSType.IndexOf("20", StringComparison.CurrentCultureIgnoreCase) < 0 && SessionSupport == "SingleSession")
{
RestartSupported = "True";
}
Expand Down
12 changes: 6 additions & 6 deletions SelfServiceSessionReset/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<!--
Version 1.4
Version 1.5
Written by Jeremy Saunders ([email protected]) 13th June 2020
Modified by Jeremy Saunders ([email protected]) 11th September 2020
Modified by Jeremy Saunders ([email protected]) 14th October 2020
-->
<html>
<head>
Expand Down Expand Up @@ -1000,7 +1000,7 @@ <h2>Self-Service Session Reset Tool</h2>
function restartMachines(sitename, deliverycontrollers, port, sessions, reset) {
OpenStatusPopup()
$("#statusmessage").append("<span>" + Get24hourTime() + ": Restarting machines...</br></span>");
var sessionsToLogoff = {
var machinesToRestart = {
"SiteName": sitename,
"DeliveryControllers": deliverycontrollers,
"Port": port,
Expand All @@ -1011,7 +1011,7 @@ <h2>Self-Service Session Reset Tool</h2>
type: "DELETE",
dataType: "json",
url: "api/CtxSession/RestartMachines",
data: sessionsToLogoff,
data: machinesToRestart,
success: function (result) {
console.info(result);
OpenStatusPopup()
Expand All @@ -1030,7 +1030,7 @@ <h2>Self-Service Session Reset Tool</h2>
function hideSessions(sitename, deliverycontrollers, port, sessions, hide) {
OpenStatusPopup()
$("#statusmessage").append("<span>" + Get24hourTime() + ": Hiding sessions...</br></span>");
var sessionsToLogoff = {
var sessionsToHide = {
"SiteName": sitename,
"DeliveryControllers": deliverycontrollers,
"Port": port,
Expand All @@ -1041,7 +1041,7 @@ <h2>Self-Service Session Reset Tool</h2>
type: "PUT",
dataType: "json",
url: "api/CtxSession/HideSessions",
data: sessionsToLogoff,
data: sessionsToHide,
success: function (result) {
console.info(result);
OpenStatusPopup()
Expand Down

0 comments on commit 9459c7f

Please sign in to comment.