houdini/client/js/nonprofits/recurring_donations/index/update.js

15 lines
390 B
JavaScript
Raw Normal View History

appl.def('ajax_details', {
update: function(id, form_obj, node) {
appl.def('loading', true)
appl.ajax.update('recurring_donation_details', id, form_obj).then(function(resp) {
appl.def('loading', false)
appl.ajax.index('recurring_donations')
appl.notify('Successfully updated!')
appl.close_modal()
appl.ajax_details.fetch(appl.recurring_donation_details.id)
})
}
})