[RSS Feed/News] Pass an argument to XF.overlayMessage()'s function?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I've this line of code in my javascript

JavaScript:

Code:
var foo = "somthing goes here";
XF.overlayMessage('Confirmation', '<p>Are you sure?</p><button class="button button--primary" onclick="XF.hideOverlays(); do_stuff();">Yes</button> <button class="button" onclick="XF.hideOverlays();">No</button>');

I would like to pass foo value as a function argument to do_stuff().

Is this possible?

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom