min pivot distance only applies to L1 pivots ,
charts minimize addons, delete buttons WIP
This commit is contained in:
@@ -166,12 +166,16 @@
|
||||
item.querySelector('.delete-annotation-btn').addEventListener('click', function(e) {
|
||||
e.stopPropagation();
|
||||
console.log('Delete button clicked for:', annotation.annotation_id);
|
||||
console.log('window.deleteAnnotation type:', typeof window.deleteAnnotation);
|
||||
console.log('window object keys:', Object.keys(window).filter(k => k.includes('delete')));
|
||||
|
||||
// Use window.deleteAnnotation to ensure we get the global function
|
||||
if (typeof window.deleteAnnotation === 'function') {
|
||||
console.log('Calling window.deleteAnnotation...');
|
||||
window.deleteAnnotation(annotation.annotation_id);
|
||||
} else {
|
||||
console.error('window.deleteAnnotation is not a function:', typeof window.deleteAnnotation);
|
||||
console.log('Available functions:', Object.keys(window).filter(k => typeof window[k] === 'function'));
|
||||
alert('Delete function not available. Please refresh the page.');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user