Lines 78-94
Link Here
|
78 |
selectTab( "#tab0XX_panel" ); |
78 |
selectTab( "#tab0XX_panel" ); |
79 |
} |
79 |
} |
80 |
|
80 |
|
81 |
$("#addbibliotabs ul.sortable_field").each( (i, e) => { |
81 |
function initializeSortable(selector) { |
82 |
Sortable.create(e, { |
82 |
$(selector).each((i, e) => { |
83 |
animation: 150 |
83 |
Sortable.create(e, { |
|
|
84 |
handle: '.handle', |
85 |
direction: 'vertical', |
86 |
animation: 150, |
87 |
}); |
84 |
}); |
88 |
}); |
85 |
}); |
89 |
} |
86 |
|
90 |
initializeSortable("#addbibliotabs ul.sortable_field"); |
87 |
$("#addbibliotabs ul.sortable_subfield").each( (i, e) => { |
91 |
initializeSortable("#addbibliotabs ul.sortable_subfield"); |
88 |
Sortable.create(e, { |
|
|
89 |
animation: 150 |
90 |
}); |
91 |
}); |
92 |
|
92 |
|
93 |
[% IF tab %] |
93 |
[% IF tab %] |
94 |
hash = "#[% tab | html %]"; |
94 |
hash = "#[% tab | html %]"; |
Lines 1089-1094
$(document).ready(function(){
Link Here
|
1089 |
<li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
1089 |
<li class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
1090 |
[% END %] |
1090 |
[% END %] |
1091 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
1091 |
<div class="tag_title" id="div_indicator_tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
|
|
1092 |
[% IF ( innerloo.repeatable ) %] |
1093 |
<span class="handle"></span> |
1094 |
[% END %] |
1092 |
[% IF advancedMARCEditor %] |
1095 |
[% IF advancedMARCEditor %] |
1093 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">[% innerloo.tag | html %]</a> |
1096 |
<a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib | html %] - Click to expand this tag" data-field_id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">[% innerloo.tag | html %]</a> |
1094 |
[% ELSE %] |
1097 |
[% ELSE %] |
Lines 1151-1156
$(document).ready(function(){
Link Here
|
1151 |
<!-- One line on the marc editor --> |
1154 |
<!-- One line on the marc editor --> |
1152 |
<li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]"> |
1155 |
<li class="subfield_line" style="[% subfield_loo.visibility | html %]" id="subfield[% subfield_loo.tag | html %][% subfield_loo.subfield | html %][% subfield_loo.random | html %]"> |
1153 |
<div class="subfieldcode"> |
1156 |
<div class="subfieldcode"> |
|
|
1157 |
<span class="handle"></span> |
1154 |
<input type="text" |
1158 |
<input type="text" |
1155 |
title="[% subfield_loo.marc_lib | $raw %]" |
1159 |
title="[% subfield_loo.marc_lib | $raw %]" |
1156 |
style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" |
1160 |
style=" [% IF ( subfield_loo.fixedfield ) %]display:none; [% END %]border:0;" |