From 9459c7f520dde4feb5362164fce60360b1f044d0 Mon Sep 17 00:00:00 2001 From: Jeremy Saunders Date: Wed, 14 Oct 2020 08:02:34 +0800 Subject: [PATCH] Corrected some variables names and typos --- .../Controllers/CtxSessionController.cs | 2 +- SelfServiceSessionReset/index.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SelfServiceSessionReset/Controllers/CtxSessionController.cs b/SelfServiceSessionReset/Controllers/CtxSessionController.cs index af41288..f8bc40e 100644 --- a/SelfServiceSessionReset/Controllers/CtxSessionController.cs +++ b/SelfServiceSessionReset/Controllers/CtxSessionController.cs @@ -214,7 +214,7 @@ private List 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"; } diff --git a/SelfServiceSessionReset/index.html b/SelfServiceSessionReset/index.html index aac5d41..599d9f8 100644 --- a/SelfServiceSessionReset/index.html +++ b/SelfServiceSessionReset/index.html @@ -1,8 +1,8 @@  @@ -1000,7 +1000,7 @@

Self-Service Session Reset Tool

function restartMachines(sitename, deliverycontrollers, port, sessions, reset) { OpenStatusPopup() $("#statusmessage").append("" + Get24hourTime() + ": Restarting machines...
"); - var sessionsToLogoff = { + var machinesToRestart = { "SiteName": sitename, "DeliveryControllers": deliverycontrollers, "Port": port, @@ -1011,7 +1011,7 @@

Self-Service Session Reset Tool

type: "DELETE", dataType: "json", url: "api/CtxSession/RestartMachines", - data: sessionsToLogoff, + data: machinesToRestart, success: function (result) { console.info(result); OpenStatusPopup() @@ -1030,7 +1030,7 @@

Self-Service Session Reset Tool

function hideSessions(sitename, deliverycontrollers, port, sessions, hide) { OpenStatusPopup() $("#statusmessage").append("" + Get24hourTime() + ": Hiding sessions...
"); - var sessionsToLogoff = { + var sessionsToHide = { "SiteName": sitename, "DeliveryControllers": deliverycontrollers, "Port": port, @@ -1041,7 +1041,7 @@

Self-Service Session Reset Tool

type: "PUT", dataType: "json", url: "api/CtxSession/HideSessions", - data: sessionsToLogoff, + data: sessionsToHide, success: function (result) { console.info(result); OpenStatusPopup()