• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Javascript: Extending JS XF Function

Mike Creuzer

Well-known member
#1
Hey all!

Have a javascript question moreso than a XenForo question, but maybe someone here will know. I want to be able to take a XenForo function, specifically the one that makes a modal box out of the OverlayTrigger class, and extend it. My goal is to say the overlay div created and add HTML to it.

Is there a way to extend a JS function in a neat way that would allow the default function(s) to work but with some added javascript?

Thanks,
Mike