Bugzilla – Attachment 159196 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.34 KB, created by
Slava Shishkin
on 2023-11-22 15:05:57 UTC
(
hide
)
Description:
Bug 35383: Make subfields of repeated tags draggable
Filename:
MIME Type:
Creator:
Slava Shishkin
Created:
2023-11-22 15:05:57 UTC
Size:
1.34 KB
patch
obsolete
>From 93a6a2eb9a4d68897bfd0241ba71afadf4b7eca6 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 > >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. >--- > 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.43.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 35383
:
159196
|
159202
|
159233