pushbutton changed to link in left column
This commit is contained in:
@ -185,23 +185,21 @@ window.onload = function() {
|
||||
|
||||
icon_lock_container.onclick = function(){
|
||||
let array_icon_edit = document.getElementsByClassName('icon-edit');
|
||||
let array_button = document.getElementsByClassName('input-element-button');
|
||||
let array_pushbutton = document.getElementsByClassName('push-button');
|
||||
|
||||
if (writePermission == false) {
|
||||
alertify.prompt( "WRITE PERMISSION", "Current device: <b>"+ window.device + "</b><p>Please confirm the instrument:", ""
|
||||
, function(evt, value) {
|
||||
// User decided to proceed
|
||||
if (window.instrument.toUpperCase() === value.toUpperCase()) {
|
||||
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++) {
|
||||
array_icon_edit[i].classList.remove('icon-edit-hidden');
|
||||
}
|
||||
for(i = 0; i < array_button.length; i++) {
|
||||
array_button[i].classList.remove('input-element-button-hidden');
|
||||
for(i = 0; i < array_pushbutton.length; i++) {
|
||||
array_pushbutton[i].classList.add('push-button-active');
|
||||
}
|
||||
} else {
|
||||
console.log(clientTitle);
|
||||
}
|
||||
}
|
||||
, function() {
|
||||
@ -214,8 +212,8 @@ window.onload = function() {
|
||||
for(i = 0; i < array_icon_edit.length; i++) {
|
||||
array_icon_edit[i].classList.add('icon-edit-hidden');
|
||||
}
|
||||
for(i = 0; i < array_button.length; i++) {
|
||||
array_button[i].classList.add('input-element-button-hidden');
|
||||
for(i = 0; i < array_pushbutton.length; i++) {
|
||||
array_pushbutton[i].classList.remove('push-button-active');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user