Lines 23-36
Link Here
|
23 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 1 %] |
23 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 1 %] |
24 |
Jump to table: |
24 |
Jump to table: |
25 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
25 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
26 |
[% SET table_id = pagename _ '_' _ tablename %] |
26 |
[% SET table_id = pagename _ '#' _ tablename %] |
27 |
<a href="#[% table_id | uri %]">[% tablename | html %]</a> |
27 |
<a href="#[% table_id | uri %]">[% tablename | html %]</a> |
28 |
[% UNLESS loop.last %]<span class="separator"> | </span>[% END %] |
28 |
[% UNLESS loop.last %]<span class="separator"> | </span>[% END %] |
29 |
[% END %] |
29 |
[% END %] |
30 |
[% END %] |
30 |
[% END %] |
31 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
31 |
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %] |
32 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
32 |
[% FOR tablename IN tables.$pagename.keys.sort %] |
33 |
[% SET table_id = pagename _ '_' _ tablename %] |
33 |
[% SET table_id = pagename _ '#' _ tablename %] |
34 |
<div class="datatable_config" id="[% table_id | html %]"> |
34 |
<div class="datatable_config" id="[% table_id | html %]"> |
35 |
<input type="hidden" name="table_id" value="[% table_id| html %]" /> |
35 |
<input type="hidden" name="table_id" value="[% table_id| html %]" /> |
36 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
36 |
[% IF pagename == 'additem' AND tablename == 'itemst' %] |
Lines 385-391
Link Here
|
385 |
$("#[% panel | uri %]_panel").on('shown.bs.collapse', function () { |
385 |
$("#[% panel | uri %]_panel").on('shown.bs.collapse', function () { |
386 |
$('html, body').animate({ |
386 |
$('html, body').animate({ |
387 |
[%- IF table.defined -%] |
387 |
[%- IF table.defined -%] |
388 |
scrollTop: ($("#[% page | uri %]_[% table | uri %]").offset().top) |
388 |
scrollTop: ($("#[% page | uri %]#[% table | uri %]").offset().top) |
389 |
[%- ELSE -%] |
389 |
[%- ELSE -%] |
390 |
scrollTop: ($("#[% page | uri %]").offset().top) |
390 |
scrollTop: ($("#[% page | uri %]").offset().top) |
391 |
[%- END -%] |
391 |
[%- END -%] |
392 |
- |
|
|