Question

I am not being able to raise the formSubmitting event when I am submitting a custom jQueryUI modal using jTable. Following is the jqeuryui modal code:

$("#editDialog").dialog({
    height: 600,
    width: 500,
    autoOpen: false,
    modal: true,
    show: {
        effect: "fade",
        duration: 250
    },
    hide: {
        effect: "fade",
        duration: 250
    },
    buttons: {
        Cancel: function () {
            $(this).dialog("close");
        },
        Save: function () {
            $(this).find("form").submit();
            $(this).dialog('close');
        }
    },
    close: function () {
        //allFields.val("").removeClass("ui-state-error");
    }
});

Any suggestion on how to achieve this is highly appreciated.

Était-ce utile?

La solution

Could not. Ended up showing the custom modal on own bound click event.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top