Bugzilla – Attachment 182116 Details for
Bug 39179
ILL batches should allow editing without having to add new requests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39179: Adjust modal buttons visibility
Bug-39179-Adjust-modal-buttons-visibility.patch (text/plain), 1.87 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-05-08 20:02:42 UTC
(
hide
)
Description:
Bug 39179: Adjust modal buttons visibility
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-05-08 20:02:42 UTC
Size:
1.87 KB
patch
obsolete
>From 582b8ce80c495b1d446d6fa4352cf68c0ee86cfc Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 20 Feb 2025 16:09:58 +0000 >Subject: [PATCH] Bug 39179: Adjust modal buttons visibility > >1) Hide 'continue' button when its no longer needed >2) Dont display 'finish' button until 'continue' is hidden > >Sponsored-by: UKHSA - UK Health Security Agency >Signed-off-by: Jeremy Evans <Jeremy.Evans@ukhsa.gov.uk> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/js/ill-batch-modal.js | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-modal.js b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-modal.js >index e59f2786f09..cff37c1955f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-modal.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-modal.js >@@ -188,9 +188,11 @@ > fetchBatch(); > isUpdate = true; > setModalHeading(); >+ createButton.style.display = "none"; > } else { > batch.data = emptyBatch; > setModalHeading(); >+ finishButton.style.display = "none"; > } > fetchStatuses(); > finishButtonEventListener(); >@@ -202,8 +204,9 @@ > } > > function initPostCreate() { >- disableCreateButton(); >+ hideCreateButton(); > cancelButton.innerHTML = ill_batch_create_cancel_button; >+ finishButton.style.display = "block"; > } > > function setFinishButton() { >@@ -760,9 +763,8 @@ > processButton.setAttribute("aria-disabled", true); > } > >- function disableCreateButton() { >- createButton.setAttribute("disabled", true); >- createButton.setAttribute("aria-disabled", true); >+ function hideCreateButton() { >+ createButton.remove(); > } > > async function populateMetadata(identifier) { >-- >2.49.0
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 39179
:
178433
|
178434
|
178435
|
178436
|
178437
|
178853
|
178854
|
178855
|
178856
|
178857
|
182113
|
182114
|
182115
| 182116 |
182117