summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/gpio.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/gpio.js')
-rw-r--r--web/share/js/kvm/gpio.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/kvm/gpio.js b/web/share/js/kvm/gpio.js
index fe326205..29e6da08 100644
--- a/web/share/js/kvm/gpio.js
+++ b/web/share/js/kvm/gpio.js
@@ -185,7 +185,7 @@ export function Gpio(__recorder) {
__recorder.recordGpioSwitchEvent(channel, to);
};
if (confirm) {
- wm.confirm(confirm).then(function(ok) {
+ wm.confirm(tools.escape(confirm)).then(function(ok) {
if (ok) {
act();
} else {
@@ -205,7 +205,7 @@ export function Gpio(__recorder) {
__recorder.recordGpioPulseEvent(channel);
};
if (confirm) {
- wm.confirm(confirm).then(function(ok) { if (ok) act(); });
+ wm.confirm(tools.escape(confirm)).then(function(ok) { if (ok) act(); });
} else {
act();
}
@@ -216,7 +216,7 @@ export function Gpio(__recorder) {
if (http.status === 409) {
wm.error("Performing another operation for this GPIO channel.<br>Please try again later");
} else if (http.status !== 200) {
- wm.error("GPIO error:<br>", http.responseText);
+ wm.error("GPIO error", http.responseText);
}
});
};