fix coordSaveCheckbox (#510)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -78,8 +78,7 @@ const coordSaveCheckbox = document.querySelector('#id_save_coords')
|
|||||||
graph.fit()
|
graph.fit()
|
||||||
|
|
||||||
graph.on('dragEnd', (params) => {
|
graph.on('dragEnd', (params) => {
|
||||||
if (coordSaveCheckbox == null) return
|
if (coordSaveCheckbox.options[coordSaveCheckbox.selectedIndex].text != "Yes") return
|
||||||
if (!coordSaveCheckbox.checked) return
|
|
||||||
|
|
||||||
Promise.allSettled(
|
Promise.allSettled(
|
||||||
Object.entries(graph.getPositions(params.nodes)).map(
|
Object.entries(graph.getPositions(params.nodes)).map(
|
||||||
|
|||||||
Reference in New Issue
Block a user