make write permission check case insensitive

This commit is contained in:
2025-05-01 08:54:26 +02:00
parent 10387261c0
commit b704440f36

View File

@ -187,10 +187,10 @@ window.onload = function() {
let array_icon_edit = document.getElementsByClassName('icon-edit');
let array_button = document.getElementsByClassName('input-element-button');
if (writePermission == false) {
alertify.prompt( 'WRITE PERMISSION', "Please enter the name of the instrument you want to work on."
alertify.prompt( "WRITE PERMISSION", "Current device: <b>"+ window.device + "</b><p>Please confirm the instrument:", ""
, function(evt, value) {
// User decided to proceed
if (clientTitle.includes(value)) {
if (window.instrument.toUpperCase() === value.toUpperCase()) {
writePermission = true;
icon_lock_container.innerHTML = '<img class = "icon-main icon-lock" src="res/icon_lock_open.png">';
for(i = 0; i < array_icon_edit.length; i++) {