prevent locking while edit_field is open
This commit is contained in:
parent
b3111c8d12
commit
b942ab8e71
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user