* zin: skip to handle global event from target with class "not-open-url".
This commit is contained in:
+3
-1
@@ -1404,7 +1404,9 @@
|
||||
if(e.defaultPrevented) return;
|
||||
if(isInAppTab) window.parent.$('body').trigger('click');
|
||||
|
||||
const $link = $(e.target).closest('a,.open-url');
|
||||
const $target = $(e.target);
|
||||
if($target.closest('.not-open-url').length) return;
|
||||
const $link = $target.closest('a,.open-url');
|
||||
if(!$link.length || $link.hasClass('ajax-submit') || $link.attr('download') || $link.attr('data-on') || $link.hasClass('show-in-app') || $link.hasClass('not-open-url') || ($link.attr('target') || '')[0] === '_') return;
|
||||
|
||||
const href = $link.attr('href');
|
||||
|
||||
Reference in New Issue
Block a user