View | Details | Raw Unified | Return to bug 22045
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css (-2 / +5 lines)
Lines 208-213 tbody tr.active td { Link Here
208
    border: 1px solid #EDF4F6;
208
    border: 1px solid #EDF4F6;
209
    border-left: 0;
209
    border-left: 0;
210
    border-right: 1px solid #EDF4F6;
210
    border-right: 1px solid #EDF4F6;
211
    border-bottom-right-radius: 5px;
212
    border-bottom-left-radius: 5px;
211
    display: block;
213
    display: block;
212
    font-weight: bold;
214
    font-weight: bold;
213
    padding: .3em 1.5em;
215
    padding: .3em 1.5em;
Lines 217-222 tbody tr.active td { Link Here
217
.toolbar-tabs li.selected a {
219
.toolbar-tabs li.selected a {
218
    background-color: #EDF4F6;
220
    background-color: #EDF4F6;
219
    border-right: 1px solid #C3D6DB;
221
    border-right: 1px solid #C3D6DB;
222
    border-bottom: 1px solid #C3D6DB;
220
    font-weight: bold;
223
    font-weight: bold;
221
}
224
}
222
225
Lines 228-235 tbody tr.active td { Link Here
228
    background-color: #F4F8F9;
231
    background-color: #F4F8F9;
229
}
232
}
230
233
231
.toolbar-tabs li:last-child a {
234
.toolbar-tabs li:first-child a {
232
235
    border-left: 1px solid #EDF4F6;
233
}
236
}
234
237
235
.tag_anchors_list {
238
.tag_anchors_list {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-9 / +22 lines)
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 %]">
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-2 / +1 lines)
Lines 31-37 $.fn.tabIndex = function () { Link Here
31
    return $(this).parent().children('div').index(this);
31
    return $(this).parent().children('div').index(this);
32
};
32
};
33
$.fn.selectTabByID = function (tabID) {
33
$.fn.selectTabByID = function (tabID) {
34
    $(this).tabs("option", "active", $(tabID).tabIndex());
34
    $(this).tabs("option", "active", $( "#" + tabID ).tabIndex());
35
};
35
};
36
36
37
 $(document).ready(function() {
37
 $(document).ready(function() {
38
- 

Return to bug 22045