I'm having a similar issue. I updated a website from 3.9.28 to 3.10.3 yesterday. The 3.9.28 website has only one script that contains #login-modal, but the 3.10.3 website has 2 scripts that contain #login-modal. One references JCaption and the second is the SourceCoast login script.
Here's what the JCaption script looks like in the 3.9.28 website:
<script>
jQuery(window).on('load', function() {
new JCaption('img.caption');
});
if (typeof jfbcJQuery == "undefined") jfbcJQuery = jQuery;
</script>
And here's what it looks like in the 3.10.3 site:
<script>
jQuery(window).on('load', function() {
new JCaption('img.caption');
});
jQuery(document).ready(function($) {
$('#login-modal').on('show.bs.modal', function() {
$('body').addClass('modal-open');
$('.modalTooltip').each(function() {
;
var attr = $(this).attr('data-placement');
if (attr === undefined || attr === false)
$(this).attr('data-placement', 'auto-dir top-left')
});
$('.modalTooltip').tooltip({
'html': true,
'container': '#login-modal'
});
}).on('shown.bs.modal', function() {
var modalHeight = $('div.modal:visible').outerHeight(true),
modalHeaderHeight = $('div.modal-header:visible').outerHeight(true),
modalBodyHeightOuter = $('div.modal-body:visible').outerHeight(true),
modalBodyHeight = $('div.modal-body:visible').height(),
modalFooterHeight = $('div.modal-footer:visible').outerHeight(true),
padding = document.getElementById('login-modal').offsetTop,
maxModalHeight = ($(window).height() - (padding * 2)),
modalBodyPadding = (modalBodyHeightOuter - modalBodyHeight),
maxModalBodyHeight = maxModalHeight - (modalHeaderHeight + modalFooterHeight + modalBodyPadding);
if (modalHeight > maxModalHeight) {
;
$('.modal-body').css({
'max-height': maxModalBodyHeight,
'overflow-y': 'auto'
});
}
}).on('hide.bs.modal', function() {
$('body').removeClass('modal-open');
$('.modal-body').css({
'max-height': 'initial',
'overflow-y': 'initial'
});
$('.modalTooltip').tooltip('destroy');
});
});
</script>
Both sites are accessible if you would like to view the source.
3.10.3 site:
nobot.org/stage/index.php
3.9.28 site:
nobot.org/members/index.php
I also see the different jq-bootstrap versions. If anyone can provide guidance on how to get the modal login in the 3.10.3 website to work, I would appreciate it.