Bugzilla – Attachment 182113 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: Update batches table icons
Bug-39179-Update-batches-table-icons.patch (text/plain), 2.38 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-05-08 20:02:34 UTC
(
hide
)
Description:
Bug 39179: Update batches table icons
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-05-08 20:02:34 UTC
Size:
2.38 KB
patch
obsolete
>From eb19bdbc0d92f1e57353e9722fe274da4fbd8b5c Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 20 Feb 2025 16:05:26 +0000 >Subject: [PATCH] Bug 39179: Update batches table icons > >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> >--- > .../intranet-tmpl/prog/js/ill-batch-table.js | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js >index 08d55a1d537..1b25eca6049 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/ill-batch-table.js >@@ -125,17 +125,32 @@ > > var editButton = document.createElement("button"); > editButton.setAttribute("type", "button"); >- editButton.setAttribute("class", "editButton btn btn-xs btn-default"); >+ editButton.setAttribute("class", "editButton btn btn-default btn-xs"); > editButton.setAttribute("data-batch-id", row.ill_batch_id); >+ >+ var editIcon = document.createElement("i"); >+ editIcon.setAttribute("class", "fa fa-pencil"); >+ editIcon.setAttribute("aria-hidden", "true"); >+ editIcon.style.pointerEvents = "none"; >+ editButton.appendChild(editIcon); >+ var whitespace = document.createTextNode("\u00A0"); >+ editButton.appendChild(whitespace); > editButton.appendChild(document.createTextNode(ill_batch_edit)); > > var deleteButton = document.createElement("button"); > deleteButton.setAttribute("type", "button"); > deleteButton.setAttribute( > "class", >- "deleteButton btn btn-xs btn-danger" >+ "deleteButton btn btn-default btn-xs" > ); > deleteButton.setAttribute("data-batch-id", row.ill_batch_id); >+ var deleteIcon = document.createElement("i"); >+ deleteIcon.setAttribute("class", "fa fa-trash-can"); >+ deleteIcon.setAttribute("aria-hidden", "true"); >+ deleteIcon.style.pointerEvents = "none"; >+ deleteButton.appendChild(deleteIcon); >+ var whitespace = document.createTextNode("\u00A0"); >+ deleteButton.appendChild(whitespace); > deleteButton.appendChild(document.createTextNode(ill_batch_delete)); > > div.appendChild(editButton); >-- >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