1jQuery(document).ready(function($) { 2 // Add this debugging code to help identify Bootstrap version 3 console.log('Debugging Bootstrap:'); 4 5 if (typeof bootstrap !== 'undefined') { 6 console.log('Bootstrap 5 detected (global bootstrap object exists)'); 7 } else if (typeof $.fn.modal !== 'undefined') { 8 console.log('Bootstrap 3/4 detected (jQuery modal plugin exists)'); 9 10 // Try to determine version more specifically 11 if (typeof $.fn.modal.Constructor.VERSION !== 'undefined') { 12 console.log('Bootstrap version: ' + $.fn.modal.Constructor.VERSION); 13 } 14 } else { 15 console.log('Bootstrap not detected or modal functionality not available'); 16 } 17 18 // Log when someone clicks the community selector link 19 $(document).on('click', '.community-selector-link, [data-target="#community-modal"]', function(e) { 20 console.log('Community selector link clicked'); 21 console.log('Link attributes:', { 22 'href': $(this).attr('href'), 23 'data-toggle': $(this).attr('data-toggle'), 24 'data-target': $(this).attr('data-target') 25 }); 26 }); 27 28 // Check if modal exists in DOM 29 if ($('#community-modal').length) { 30 console.log('Modal found in DOM'); 31 } else { 32 console.log('Modal NOT found in DOM'); 33 } 34});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.