@@ -, +, @@ 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. --- .../prog/en/modules/authorities/authorities.tt | 17 ++++++----------- .../prog/en/modules/cataloguing/addbiblio.tt | 9 --------- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 10 ++++++++++ 3 files changed, 16 insertions(+), 20 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,8 @@ 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 - }); - }); + initializeSortable("#authoritytabs ul.sortable_field"); + initializeSortable("#authoritytabs ul.sortable_subfield"); Sticky = $("#toolbar"); Sticky.hcSticky({ @@ -614,6 +605,9 @@
[% UNLESS hide_marc %] + [% IF ( innerloo.repeatable ) %] + + [% END %] [% IF advancedMARCEditor %] [% innerloo.tag | html %] [% ELSE %] @@ -696,6 +690,7 @@ [% UNLESS hide_marc %]
+ { - Sortable.create(e, { - handle: '.handle', - direction: 'vertical', - animation: 150, - }); - }); - } initializeSortable("#addbibliotabs ul.sortable_field"); initializeSortable("#addbibliotabs ul.sortable_subfield"); --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -603,6 +603,16 @@ function CheckImportantSubfields(p){ return total; } +function initializeSortable(selector) { + $(selector).each((i, e) => { + Sortable.create(e, { + handle: '.handle', + direction: 'vertical', + animation: 150, + }); + }); +} + $(document).ready(function() { $("input.input_marceditor, input.indicator").addClass('noEnterSubmit'); $(document).ajaxSuccess(function() { --