Lines 28-34
Link Here
|
28 |
}); |
28 |
}); |
29 |
|
29 |
|
30 |
[% IF tab %] |
30 |
[% IF tab %] |
31 |
$('#addbibliotabs').selectTabByID("#[% tab | html %]"); |
31 |
$('#addbibliotabs').selectTabByID("tab[% tab | html %]"); |
32 |
[% END %] |
32 |
[% END %] |
33 |
|
33 |
|
34 |
Sticky = $("#toolbar"); |
34 |
Sticky = $("#toolbar"); |
Lines 139-145
Link Here
|
139 |
$(".toolbar-tabs li").removeClass("selected"); |
139 |
$(".toolbar-tabs li").removeClass("selected"); |
140 |
$(this).parent().addClass("selected"); |
140 |
$(this).parent().addClass("selected"); |
141 |
var tabid = $(this).data("tabid"); |
141 |
var tabid = $(this).data("tabid"); |
142 |
$("#addbibliotabs").tabs( "option", "active", tabid ); |
142 |
$('#addbibliotabs').selectTabByID("tab" + tabid + "XX"); |
143 |
$(".tag_anchors").removeClass("tab_selected").hide(); |
143 |
$(".tag_anchors").removeClass("tab_selected").hide(); |
144 |
$(".tag_anchors_" + tabid ).addClass("tab_selected").show(); |
144 |
$(".tag_anchors_" + tabid ).addClass("tab_selected").show(); |
145 |
}); |
145 |
}); |
Lines 571-585
function Changefwk() {
Link Here
|
571 |
[% END %] |
571 |
[% END %] |
572 |
[% END %] |
572 |
[% END %] |
573 |
<div class="toolbar-tabs-container"> |
573 |
<div class="toolbar-tabs-container"> |
574 |
<ul class="toolbar-tabs"> |
574 |
[% IF ( BIG_LOOP.size > 1 ) %] |
575 |
[%- FOREACH BIG_LOO IN BIG_LOOP -%][%- SET tabname = BIG_LOO.number -%][% IF loop.first %]<li class="selected">[% ELSE %]<li>[% END %]<a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX">[% tabname | html %]</a></li>[%- END -%] |
575 |
<ul class="toolbar-tabs"> |
576 |
</ul> |
576 |
[%- FOREACH BIG_LOO IN BIG_LOOP -%] |
|
|
577 |
[% IF loop.first %] |
578 |
<li class="selected"> |
579 |
[% ELSE %] |
580 |
<li> |
581 |
[% END %] |
582 |
<a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX">[% BIG_LOO.number | html %]</a> |
583 |
</li> |
584 |
[%- END -%] |
585 |
</ul> |
586 |
[% END %] |
577 |
<ul class="tag_anchors_list"> |
587 |
<ul class="tag_anchors_list"> |
578 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
588 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
579 |
[% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %] |
589 |
[% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %] |
580 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
590 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
581 |
[% IF ( innerloo.tag ) %] |
591 |
[% IF ( innerloo.tag ) %] |
582 |
<li class="tag_anchors tag_anchors_[% BIG_LOO.number | html %] [% tab_selected | html %]"><a class="tag_anchor" id="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" title="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" href="#div_indicator_tag_[% innerloo.tag | uri %]_[% innerloo.index | uri %][% innerloo.random | uri %]">[% innerloo.tag | uri %]</a></li> |
592 |
<li class="tag_anchors tag_anchors_[% BIG_LOO.number | html %] [% tab_selected | html %]"> |
|
|
593 |
<a class="tag_anchor" id="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" title="tag_anchor_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]" href="#div_indicator_tag_[% innerloo.tag | uri %]_[% innerloo.index | uri %][% innerloo.random | uri %]">[% innerloo.tag | uri %]</a> |
594 |
</li> |
583 |
[% END %] |
595 |
[% END %] |
584 |
[% END %] |
596 |
[% END %] |
585 |
[% END %] |
597 |
[% END %] |
Lines 606-620
function Changefwk() {
Link Here
|
606 |
<div id="addbibliotabs" class="toptabs numbered"> |
618 |
<div id="addbibliotabs" class="toptabs numbered"> |
607 |
<ul> |
619 |
<ul> |
608 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
620 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
609 |
<li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li> |
621 |
<li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li> |
610 |
[% END %] |
622 |
[% END %] |
611 |
</ul> |
623 |
</ul> |
612 |
|
624 |
|
613 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
625 |
[% FOREACH BIG_LOO IN BIG_LOOP %] |
614 |
[% SET tabname = BIG_LOO.number %] |
|
|
615 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
626 |
<div id="tab[% BIG_LOO.number | html %]XX"> |
616 |
|
627 |
|
617 |
<h3>Section [% tabname | html %]</h3> |
628 |
[% IF ( BIG_LOOP.size > 1 ) %] |
|
|
629 |
<h3>Section [% BIG_LOO.number | html %]</h3> |
630 |
[% END %] |
618 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
631 |
[% FOREACH innerloo IN BIG_LOO.innerloop %] |
619 |
[% IF ( innerloo.tag ) %] |
632 |
[% IF ( innerloo.tag ) %] |
620 |
<div class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |
633 |
<div class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]"> |