jrCore_page_set_no_header_or_footer breaks javascript added to form in modal
Jamroom Developers
yes. Why yes there is.
jrCore_page_set_meta_header_only();
--edit--
You might find this useful too perhaps:
$html = "
<script>
$(document).ajaxSuccess(function (event, request, settings, data) {
if(typeof(data.form_name) != \"undefined\" && data.form_name == 'ajax_create_save') {
jrSeminar_load_calendar('seminar_calendar_box', 'current');
}
});
</script>";
jrCore_page_custom($html);
jrCore_page_display();
"After that bit of ajax finishes loading, fire this function......." because on.document.ready doesnt work for ajax loaded content. send the form name back with the json_response:
......
jrCore_form_delete_session();
jrUser_reset_cache($_user['_user_id']);
$_resp = array(
'form_name' => 'ajax_create_save',
'success' => 1,
'success_msg' => "the new seminar got created"
);
jrCore_json_response($_resp);
updated by @michael: 03/30/18 08:38:52PM