}, settings.ajaxForm));
if (settings.openInline) {
settings.autoClose = $el.crmSnippet('isOriginalUrl');
- $(settings.openInline, this).not(exclude + ', .crm-popup').click(function(event) {
+ $(this).on('click', settings.openInline, function(e) {
+ if ($(this).is(exclude + ', .crm-popup')) {
+ return;
+ }
if ($(this).hasClass('open-inline-noreturn')) {
// Force reset of original url
$el.data('civiCrmSnippet')._originalUrl = $(this).attr('href');
}
$el.crmSnippet('option', 'url', $(this).attr('href')).crmSnippet('refresh');
- return false;
+ e.preventDefault();
});
}
// Show form buttons as part of the dialog