Bugzilla – Attachment 159233 Details for
Bug 35383
Dragging and dropping subfield of repeated tags doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35383: Make subfields of repeated tags draggable
Bug-35383-Make-subfields-of-repeated-tags-draggabl.patch (text/plain), 1.49 KB, created by
Marcel de Rooy
on 2023-11-24 09:54:11 UTC
(
hide
)
Description:
Bug 35383: Make subfields of repeated tags draggable
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-11-24 09:54:11 UTC
Size:
1.49 KB
patch
obsolete
>From f3f78ca3682a2209c6f343d6bb055946510aafca Mon Sep 17 00:00:00 2001 >From: Slava Shishkin <slavashishkin@gmail.com> >Date: Mon, 20 Nov 2023 18:32:51 +0200 >Subject: [PATCH] Bug 35383: Make subfields of repeated tags draggable >Content-Type: text/plain; charset=utf-8 > >To reproduce: >1. Open any biblio and edit that record. > (select "Edit record" from the "Edit" drop-down menu). >2. Repeat any tag that may be repeated and has more than one subfield > (e.g. 050 or 082) (click "Repeat this tag") >3. Try dragging a subfield of the new repeated tag > >Apply the patch and make sure dragging a subfield works well. > >Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >index f257b19666..64a5c4cc7f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >@@ -324,6 +324,12 @@ function CloneField(index, hideMarc, advancedMARCEditor) { > // insert this line on the page > original.parentNode.insertBefore(clone,original.nextSibling); > >+ $(clone).find("ul.sortable_subfield").each((i, e) => { >+ Sortable.create(e, { >+ animation: 150, >+ }); >+ }); >+ > Select2Utils.initSelect2($(original).find('select')); > Select2Utils.initSelect2($(clone).find('select')); > } >-- >2.30.2
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 35383
:
159196
|
159202
| 159233