Update organisation functionality
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user