@@ -, +, @@ in authority editor with the mouse in the middle of the content of any subfield or to select text with the mouse. It should not be possilbe. --- .../en/modules/authorities/authorities.tt | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -48,17 +48,17 @@ selectTab( "#tab0XX_panel" ); } - $("#authoritytabs ul.sortable_field").each( (i, e) => { - Sortable.create(e, { - animation: 150 - }); - }); - - $("#authoritytabs ul.sortable_subfield").each( (i, e) => { - Sortable.create(e, { - animation: 150 - }); - }); + function initializeSortable(selector) { + $(selector).each((i, e) => { + Sortable.create(e, { + handle: '.handle', + direction: 'vertical', + animation: 150, + }); + }); + } + initializeSortable("#authoritytabs ul.sortable_field"); + initializeSortable("#authoritytabs ul.sortable_subfield"); Sticky = $("#toolbar"); Sticky.hcSticky({ @@ -556,6 +556,9 @@
[% UNLESS hide_marc %] + [% IF ( innerloo.repeatable ) %] + + [% END %] [% IF advancedMARCEditor %] [% innerloo.tag | html %] [% ELSE %] @@ -638,6 +641,7 @@ [% UNLESS hide_marc %]
+