prevent locking while edit_field is open

This commit is contained in:
iou1name 2019-06-20 11:59:37 -04:00
parent b3111c8d12
commit b942ab8e71
3 changed files with 12 additions and 10 deletions

View File

@ -80,6 +80,7 @@ nav span:hover {
.edit, .save, .lock, .unlock {
font-size: 0.8em;
color: dimgrey;
margin-left: 0.4em;
}
.edit:hover, .save:hover, .lock:hover, .unlock:hover {

View File

@ -122,6 +122,7 @@ function new_device() {
}
function lock_device(device) {
if (device.querySelector('.save')) { return; }
let fields = device.querySelectorAll('.editable');
fields.forEach(function(field) {
field.querySelector('.edit').remove();