Bug 34468: Add progress callback to job_progress.js
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Thu, 3 Aug 2023 10:11:39 +0000 (10:11 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 25 Oct 2023 15:09:48 +0000 (12:09 -0300)
commit63b7d7e3c560d94c466cbef7585011861b639a3e
tree56904575c6d3b4a3dcc1b22fcc1b167e0efd203b
parent5bbc0090f3f1f486a5ac08efe25f601d4daa3ebf
Bug 34468: Add progress callback to job_progress.js

These patches change the current updateProgress function to accept a
progress callback (a function that is called every time the bar
progresses) in addition to the already existing callback that is called
when the progress bar finishes.

It's not expected to change any current behavior in master because
updateProgress is only used once in the stage marc import tool using
the already existing callback, and these patches aim to keep that.

Test Plan:
1) Apply this patch
2) Stage a marc batch ( preferrably a large one to show the progress
   updating )
3) Note the new progess bar, verify it functions correctly.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/job_progress.js