Bugzilla – Attachment 136976 Details for
Bug 31085
The return claims table no longer reloads on resolution
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31085: Reload return claims table on resolve
Bug-31085-Reload-return-claims-table-on-resolve.patch (text/plain), 1.65 KB, created by
Martin Renvoize (ashimema)
on 2022-07-01 14:37:17 UTC
(
hide
)
Description:
Bug 31085: Reload return claims table on resolve
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-07-01 14:37:17 UTC
Size:
1.65 KB
patch
obsolete
>From 20c58fdb7ea917cac9de138f08345933ac288aa2 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 27 Jun 2022 17:53:15 +0100 >Subject: [PATCH] Bug 31085: Reload return claims table on resolve > >This is another fix for a bug in return claims. We now test for the >initialised datatable and call an ajax reload directly on it if we find >one instead of calling a undefined function (the function is out of >scope here). > >NOTE: Taken as a whole commit follow-up on bug 28854 where the issue was >initially identified > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > koha-tmpl/intranet-tmpl/prog/js/resolve_claim_modal.js | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/resolve_claim_modal.js b/koha-tmpl/intranet-tmpl/prog/js/resolve_claim_modal.js >index c59ee023e5..a60598db6c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/resolve_claim_modal.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/resolve_claim_modal.js >@@ -30,9 +30,11 @@ $(document).on('click', '#claims-returned-resolved-modal-btn-submit', function(e > success: function(data) { > $('#claims-returned-resolved-modal-btn-submit-spinner').hide(); > $('#claims-returned-resolved-modal-btn-submit-icon').show(); >- $('#claims-returned-resolved-modal').modal('hide') >+ $('#claims-returned-resolved-modal').modal('hide'); > >- refreshReturnClaimsTable(); >+ if ( $.fn.dataTable.isDataTable("#return-claims-table") ) { >+ $("#return-claims-table").DataTable().ajax.reload(); >+ } > }, > contentType: "json" > }); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31085
:
136976
|
137024