Closed (fixed)
Project:
External Link Pop-up
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2021 at 04:49 UTC
Updated:
16 Mar 2021 at 13:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jamesashok commentedTriggered custom event
external-link:action,action: yesaction: no-popupComment #3
jamesashok commentedComment #4
dewalt commentedThanks @jamesashok, it could be usefull. Comments I have:
ES5 JS is used, it have no "const" keyword.
It uses quick exit that makes code clear. I think it's better to trigger event here too and exit. And in this way the param could be used that shows - does popup not found or does the link whitelisted.
I think action name in camel case would be better, e.g. "externalLinkPopupSkipped" or "extenalLinkPopup:skipped".
Comment #5
jamesashok commentedComment #6
jamesashok commentedThanks @dewalt
The suggested changes are in the updated patch. Please review.
Comment #7
jamesashok commentedComment #8
dewalt commented@jamesashok, what do you see about this changes in implementation?
Comment #9
jamesashok commentedSorry for the late reply @dewalt...
Just two comments/doubts on the above patch:-
- On
dialog.jsis it possible, that an anchor tag could have adata-external-link-popup-idattribute, valid external domain and a class.external-link-popup-disabledon it. If this scenario is possible, then we may execute anchor click code, when previously without the patch we would'nt have executed (as it is restricted by the:not(.external-link-popup-disabled))- On README.txt, could we be more specific about the
or a link class?Rest of the patch is better, considering that we are covering more scenarios to raise the events...
Comment #10
dewalt commentedThanks, its possible, I'll fix it a bit later the same as README. If you'd like feel free to provide the fixes.
Comment #11
dewalt commented@jamesashok please look the fixed one
Comment #12
dewalt commentedComment #14
dewalt commentedI've commited the changes into dev branch, I'll make additional check on holidays and make a release.