Hello, I'm using 5.4 and a custom mixin on my submit actions which is
used to trigger the bootstrap modal popup. My popup does nothing other
than provide warnings to the user prior to form submission. I'm trying
to figure out how to submit the form from my modal popup with the
original submit buttons context. When original submit button is
clicked, I'd like to somehow pass in the context to modal so I can
reconstruct the new submit action.

Current JS code

define(["jquery", "bootstrap/modal"], function($) {
    int = function(spec) {
        var $field = $("#" + spec.id);

        $field.bind("click", function(e) {
            e.preventDefault();
            $("#" + spec.id + "Modal").modal();
        });
    };
    return int;
});

Can someone point me in the correct direction?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to