jQuery(document).ready(function(e){if(typeof mediaLibraryOrganizerSelectizeInit!=="undefined"){mediaLibraryOrganizerSelectizeInit()}e("form#media-library-organizer").on("submit",function(i){i.preventDefault();wpzinc_modal_open(media_library_organizer_settings.save_settings_modal.title,"");e.ajax({url:ajaxurl,type:"POST",async:true,data:{action:media_library_organizer_settings.save_settings_action,nonce:media_library_organizer_settings.save_settings_nonce,settings:JSON.stringify(e(this).serializeArray())},error:function(e,i,a){wpzinc_modal_close()},success:function(e){if(!e.success){wpzinc_modal_show_error_message_and_exit(e.data)}wpzinc_modal_show_success_and_exit(media_library_organizer_settings.save_settings_modal.title_success)}})})});