Skip to content
Permalink
Browse files

Gift Entry: allow to stay in gift edit to add gift details when creat…

…ing a new gift.

fixes #377
  • Loading branch information...
tpokorra committed Aug 31, 2019
1 parent 893a4f9 commit f28a64d41cbb226a331eab98ec0c6568035fc254
Showing with 10 additions and 2 deletions.
  1. +10 −2 js-client/src/forms/Finance/Gift/GiftEntry/GiftBatches.js
@@ -337,8 +337,16 @@ function save_edit_trans(obj_modal) {
parsed = JSON.parse(result.data.d);
if (parsed.result == true) {
display_message(i18next.t('forms.saved'), "success");
$('#modal_space .modal').modal('hide');
updateBatch(payload['ABatchNumber']);
if (mode=="edit") {
$('#modal_space .modal').modal('hide');
updateBatch(payload['ABatchNumber']);
} else if (mode=="create") {
// switch to edit mode
updateBatch(payload['ABatchNumber']);
p = $('#modal_space .modal');
p.find('[edit-only]').show();
p.find('[action]').val('edit');
}
}
else if (parsed.result == false) {
display_error(parsed.AVerificationResult);

0 comments on commit f28a64d

Please sign in to comment.
You can’t perform that action at this time.