wip
This commit is contained in:
@@ -369,6 +369,10 @@
|
||||
}
|
||||
|
||||
function setupGlobalFunctions() {
|
||||
console.log('=== setupGlobalFunctions called ===');
|
||||
console.log('deleteAnnotation function exists:', typeof deleteAnnotation);
|
||||
console.log('highlightAnnotation function exists:', typeof highlightAnnotation);
|
||||
|
||||
// Make functions globally available
|
||||
window.showError = showError;
|
||||
window.showSuccess = showSuccess;
|
||||
@@ -382,6 +386,14 @@
|
||||
console.log(' - window.renderAnnotationsList:', typeof window.renderAnnotationsList);
|
||||
console.log(' - window.showError:', typeof window.showError);
|
||||
console.log(' - window.showSuccess:', typeof window.showSuccess);
|
||||
|
||||
// Test call
|
||||
console.log('Testing window.deleteAnnotation availability...');
|
||||
if (typeof window.deleteAnnotation === 'function') {
|
||||
console.log('✓ window.deleteAnnotation is ready');
|
||||
} else {
|
||||
console.error('✗ window.deleteAnnotation is NOT a function!');
|
||||
}
|
||||
}
|
||||
|
||||
function renderAnnotationsList(annotations) {
|
||||
|
||||
@@ -74,11 +74,11 @@
|
||||
<!-- jQuery (for convenience) -->
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
|
||||
<!-- Custom JavaScript -->
|
||||
<script src="{{ url_for('static', filename='js/chart_manager.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/annotation_manager.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/time_navigator.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/training_controller.js') }}"></script>
|
||||
<!-- Custom JavaScript with cache busting -->
|
||||
<script src="{{ url_for('static', filename='js/chart_manager.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/annotation_manager.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/time_navigator.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/training_controller.js') }}?v={{ range(1, 10000) | random }}"></script>
|
||||
|
||||
{% block extra_js %}{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user