Fixed some layout issues fpr modules and parameters
This commit is contained in:
@ -132,6 +132,7 @@
|
|||||||
padding: 2px;
|
padding: 2px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: none;
|
display: none;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-status:hover ~ .status-info {
|
.icon-status:hover ~ .status-info {
|
||||||
@ -166,6 +167,9 @@
|
|||||||
.col-right-value {
|
.col-right-value {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-right-value-with-write-permission {
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,6 +219,9 @@ function createRightColumnForParameters(component) {
|
|||||||
function createValue (component) {
|
function createValue (component) {
|
||||||
let value = document.createElement('span');
|
let value = document.createElement('span');
|
||||||
value.classList.add('col-right-value');
|
value.classList.add('col-right-value');
|
||||||
|
if (writePermission == true) {
|
||||||
|
value.classList.add('col-right-value-with-write-permission');
|
||||||
|
}
|
||||||
value.setAttribute('name', component.name);
|
value.setAttribute('name', component.name);
|
||||||
value.__ctype__ = 'rdonly';
|
value.__ctype__ = 'rdonly';
|
||||||
return value;
|
return value;
|
||||||
|
@ -186,6 +186,7 @@ window.onload = function() {
|
|||||||
icon_lock_container.onclick = function(){
|
icon_lock_container.onclick = function(){
|
||||||
let array_icon_edit = document.getElementsByClassName('icon-edit');
|
let array_icon_edit = document.getElementsByClassName('icon-edit');
|
||||||
let array_pushbutton = document.getElementsByClassName('push-button');
|
let array_pushbutton = document.getElementsByClassName('push-button');
|
||||||
|
let array_col_right_value = document.getElementsByClassName('col-right-value');
|
||||||
|
|
||||||
if (writePermission == false) {
|
if (writePermission == false) {
|
||||||
alertify.prompt( "WRITE PERMISSION", "Current device: <b>"+ window.device + "</b><p>Please confirm the instrument:", ""
|
alertify.prompt( "WRITE PERMISSION", "Current device: <b>"+ window.device + "</b><p>Please confirm the instrument:", ""
|
||||||
@ -200,6 +201,9 @@ window.onload = function() {
|
|||||||
for(i = 0; i < array_pushbutton.length; i++) {
|
for(i = 0; i < array_pushbutton.length; i++) {
|
||||||
array_pushbutton[i].classList.add('push-button-active');
|
array_pushbutton[i].classList.add('push-button-active');
|
||||||
}
|
}
|
||||||
|
for (let i = 0; i < array_col_right_value.length; i++) {
|
||||||
|
array_col_right_value[i].classList.add('col-right-value-with-write-permission');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
, function() {
|
, function() {
|
||||||
@ -215,6 +219,9 @@ window.onload = function() {
|
|||||||
for(i = 0; i < array_pushbutton.length; i++) {
|
for(i = 0; i < array_pushbutton.length; i++) {
|
||||||
array_pushbutton[i].classList.remove('push-button-active');
|
array_pushbutton[i].classList.remove('push-button-active');
|
||||||
}
|
}
|
||||||
|
for (let i = 0; i < array_col_right_value.length; i++) {
|
||||||
|
array_col_right_value[i].classList.remove('col-right-value-with-write-permission');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user