* zin: fix click on help link not work as expected.

This commit is contained in:
sunhao
2023-11-21 16:47:57 +08:00
parent e67aa506f9
commit a41c1fddc4
+11 -3
View File
@@ -1076,9 +1076,14 @@
}
var appCode = options.app;
console.log('> handleClickLinkIn18', {appCode, options, url})
if(url)
{
if(appCode === 'help') return $.apps.openUrl(url, {app: appCode});
if(appCode === 'help')
{
e.preventDefault();
return $.apps.openUrl(url, {app: appCode});
}
var urlInfo = $.parseLink(url);
if(urlInfo.external || (urlInfo.moduleName === 'file' && urlInfo.methodName === 'download')) return;
if(urlInfo.moduleName === 'index' && urlInfo.methodName === 'index')
@@ -1109,9 +1114,12 @@
if(!iframeContainer) return;
var customEvent;
if(typeof Event === 'function') {
if(typeof Event === 'function')
{
customEvent = new Event(event.type, {bubbles: true});
} else {
}
else
{
customEvent = document.createEvent('Event');
customEvent.initEvent(event.type, true, true);
}