Fix: Prevent GUI issues if clicking external link within a changelog

This commit is contained in:
Squidly271
2025-09-25 14:54:58 -04:00
committed by GitHub
parent ad09b2b02f
commit 79de90e12e

View File

@@ -344,6 +344,8 @@ $('body').on('click','a,.ca_href', function(e) {
$.cookie('allowedDomains',JSON.stringify(domainsAllowed),{expires:3650}); // rewrite cookie to further extend expiration by 400 days
if (domainsAllowed[dom.hostname]) return;
e.preventDefault();
$('.sweet-alert').removeClass('nchan'); // Remove nchan class if present as display issues will result
swal({
title: "<?=_('External Link')?>",
text: "<span title='"+href+"'><?=_('Clicking OK will take you to a 3rd party website not associated with Lime Technology')?><br><br><b>"+href+"<br><br><input id='Link_Always_Allow' type='checkbox'></input><?=_('Always Allow')?> "+dom.hostname+"</span>",