jquery-modal icon indicating copy to clipboard operation
jquery-modal copied to clipboard

Modal Events in AJAX Context are not triggered on <a> element

Open tylkomat opened this issue 10 years ago • 0 comments

When opening a modal with ajax content the standard modal events are triggered on a newly created div, but that is not useful as they can't be catched, the events should also be triggered on the <a> element as it happens for the AJAX events.

Also the AJAX events should deliver some data, otherwise they are not really useful, because one can't really react on anything: The AJAX_COMPLETE event should also deliver the current context of the modal. The AJAX_SUCCESS event could deliver the data that was fetched The AJAX_FAIL event should deliver the error that happened, it should probably also still open the modal, such that an error message can be displayed.

tylkomat avatar Jul 09 '15 08:07 tylkomat