XF 2.3 Overlay popup closes after a form submit / use of iconic--toggle :: I need to keep it open

Scandal

Well-known member
Hello all!

I have a problem which I cannot solve for some reasons.

Well, I'm opening an overlay popup via this:
HTML:
<a data-xf-click="overlay" href="{{ link('sth') }}">My Page</a>

This overlay has on the template:
HTML:
<xf:form data-xf-init="ajax-submit" autocomplete="off" action="{{ link('sth/sth2') }}" method="POST">
    <xf:checkboxrow style="font-size: 280%; margin-top: -10px;" label="My label">
        <xf:option name="choice" selected="{{ ($xf.visitor.mygetter ? true : false) }}"
            label=""
            data-xf-click="submit"
            labelclass="iconic--toggle" />
    </xf:checkboxrow>
</xf:form>

The problem: I need once the name="choice" iconic--toggle clicked, to not close the overlay.
Currently due to the submit, it closes the overlay.


This is the php / pub part:

Any idea?
PHP:
        $view = $this->view();
        $view->setJsonParam('message', 'DDDDONE!');
        return $view;

1. I need to keep the overlay opened and just show the flash message 'Done'. Any idea? No redirect, no close of the overlay. Just the flash message.
2. Is there any way to have the iconic-toggle in bigger size? It was very small for this reason I added font-size: 280%;

Thanks :)
 
Back
Top Bottom