1. 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

Discussion in 'Styling and Customization Questions' started by Mike Creuzer, Jan 9, 2014.

  1. Mike Creuzer

    Mike Creuzer Well-Known Member

    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?

  2. Mike Creuzer

    Mike Creuzer Well-Known Member

    And of course without editing core a JS file.
  3. Jeremy

    Jeremy Well-Known Member

    thedude likes this.

Share This Page