Don't close OverlayTrigger on form submit?

Jaxel

Well-known member
So I have a form which appears on an OverlayTrigger. Normally, when you click submit on the form, it closes the overlay and processes the action. Is there a way I can set it so that the action gets processed, but the overlay doesn't get closed?
 
Last edited:
The reason I ask for this is I am updating the bbcode overlays for my XenMedio addon:

View attachment 63414

It was pretty easy getting AJAX working on this page. It changes pages perfectly fine... I would like to add a comment form to this overlay. So that in addition to browsing comments on this video, a user can post a comment as well. If I view the popout page as a regular page:

http://8wayrun.com/media/soulcalibur-lost-swordssofyiitia.6698/media/popout/comments

The form works flawlessly. It posts the comment using AJAX and doesn't force a page refresh. However, when I view the page as an overlay, clicking post on the comment form closes the overlay... which is what I dont want. I want people to be able to post comments, without it closing the video.

Moderator: Please don't post images which contain profanity.
 
Last edited by a moderator:
So in XF 1.3, an "interact" button was added to the new profile posts sidebar widget. This button opens up an OverlayTrigger, with a form where a user can submit a comment to a profile post. I noticed that this form does NOT close the overlayTrigger on submit... so its directly related to my opening question.

Does anyone know how this was done?
 
So in XF 1.3, an "interact" button was added to the new profile posts sidebar widget. This button opens up an OverlayTrigger, with a form where a user can submit a comment to a profile post. I noticed that this form does NOT close the overlayTrigger on submit... so its directly related to my opening question.

Does anyone know how this was done?
Not at my computer right now but did you check the js getting called for that submit?
 
Top Bottom