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 574-588 function Changefwk() { Link Here
574
        [% END %]
574
        [% END %]
575
    [% END %]
575
    [% END %]
576
    <div class="toolbar-tabs-container">
576
    <div class="toolbar-tabs-container">
577
        <ul class="toolbar-tabs">
577
        [% IF ( BIG_LOOP.size > 1 ) %]
578
            [%- 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 -%]
578
            <ul class="toolbar-tabs">
579
        </ul>
579
                [%- FOREACH BIG_LOO IN BIG_LOOP -%]
580
                    [% IF loop.first %]
581
                        <li class="selected">
582
                    [% ELSE %]
583
                        <li>
584
                    [% END %]
585
                        <a data-tabid="[% BIG_LOO.number | html %]" href="#tab[% BIG_LOO.number | html %]XX">[% BIG_LOO.number | html %]</a>
586
                    </li>
587
                [%- END -%]
588
            </ul>
589
        [% END %]
580
        <ul class="tag_anchors_list">
590
        <ul class="tag_anchors_list">
581
            [% FOREACH BIG_LOO IN BIG_LOOP %]
591
            [% FOREACH BIG_LOO IN BIG_LOOP %]
582
                [% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %]
592
                [% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %]
583
                [% FOREACH innerloo IN BIG_LOO.innerloop %]
593
                [% FOREACH innerloo IN BIG_LOO.innerloop %]
584
                    [% IF ( innerloo.tag ) %]
594
                    [% IF ( innerloo.tag ) %]
585
                        <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>
595
                        <li class="tag_anchors tag_anchors_[% BIG_LOO.number | html %] [% tab_selected | html %]">
596
                            <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>
597
                        </li>
586
                    [% END %]
598
                    [% END %]
587
                [% END %]
599
                [% END %]
588
            [% END %]
600
            [% END %]
Lines 609-623 function Changefwk() { Link Here
609
<div id="addbibliotabs" class="toptabs numbered">
621
<div id="addbibliotabs" class="toptabs numbered">
610
    <ul>
622
    <ul>
611
        [% FOREACH BIG_LOO IN BIG_LOOP %]
623
        [% FOREACH BIG_LOO IN BIG_LOOP %]
612
        <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
624
            <li><a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a></li>
613
        [% END %]
625
        [% END %]
614
    </ul>
626
    </ul>
615
627
616
[% FOREACH BIG_LOO IN BIG_LOOP %]
628
[% FOREACH BIG_LOO IN BIG_LOOP %]
617
    [% SET tabname = BIG_LOO.number %]
618
    <div id="tab[% BIG_LOO.number | html %]XX">
629
    <div id="tab[% BIG_LOO.number | html %]XX">
619
630
620
    <h3>Section [% tabname | html %]</h3>
631
    [% IF ( BIG_LOOP.size > 1 ) %]
632
        <h3>Section [% BIG_LOO.number | html %]</h3>
633
    [% END %]
621
    [% FOREACH innerloo IN BIG_LOO.innerloop %]
634
    [% FOREACH innerloo IN BIG_LOO.innerloop %]
622
    [% IF ( innerloo.tag ) %]
635
    [% IF ( innerloo.tag ) %]
623
    <div class="tag clearfix" id="tag_[% innerloo.tag | html %]_[% innerloo.index | html %][% innerloo.random | html %]">
636
    <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