make sure instrument and device are availabel separately

- added comment to the alert to be modified
  ("You changed a field without pressing the return key.")
This commit is contained in:
2025-04-30 14:46:22 +02:00
parent fe80de4d4b
commit b0761d9be9
2 changed files with 13 additions and 3 deletions

View File

@@ -182,7 +182,11 @@ window.onload = function() {
let array_icon_edit = document.getElementsByClassName('icon-edit');
let array_button = document.getElementsByClassName('input-element-button');
if (writePermission == false) {
alertify.confirm("WRITE PERMISSION", "You are working on <b>"+ clientTitle + "</b>. Are You sure you want to change things here?",
// TODO: here instead of asking "Please confirm we are on <instrument>", do not show the instrument,
// ask the user "Please confrim the instrument:" and check it the entered instrument is correct
// (case insensitive)
alertify.confirm("WRITE PERMISSION", "Current device: <b>"+ window.device
+ "</b>. Please confirm we are on <b>" + window.instrument + "</b>",
function () {
// User decided to proceed.
prompt = false;