Update organisation functionality

This commit is contained in:
2022-02-04 12:36:47 +00:00
parent 2cf2777494
commit 830a1b49a8
7 changed files with 267 additions and 5 deletions

View File

@@ -58,6 +58,24 @@ function bindOrganisationButtons(el, options) {
* Link row buttons after table is loaded.
*/
/**
* Buttons that launch a modal dialog
*/
// Edit organisation details button
el.find('.js-organisation-edit').click(function(e) {
e.preventDefault();
$("body").ufModal({
sourceUrl: site.uri.public + "/modals/organisations/edit",
ajaxParams: {
slug: $(this).data('slug')
},
msgTarget: $("#alerts-page")
});
attachOrganisationForm();
});
// Delete organisation button
el.find('.js-organisation-delete').click(function(e) {
e.preventDefault();