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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-1 / +6 lines)
Lines 151-157 Link Here
151
                        }
151
                        }
152
                    },
152
                    },
153
                    "plugins" : [ "types" ]
153
                    "plugins" : [ "types" ]
154
                }).on('ready.jstree', function(){ $(this).jstree('open_all')
154
                }).on('ready.jstree', function(){
155
                    $(this).jstree('open_all');
156
                    $("#hier"+[% authid %]+"_anchor").on("click",
157
                        function(e){e.preventDefault(); return false;}
158
                    ).css("text-decoration", "none").css("color", "#333");
159
                    $(".currentauth").css("text-decoration", "none").css("color", "#333");
155
                }).bind("select_node.jstree", function (e, data) {
160
                }).bind("select_node.jstree", function (e, data) {
156
                    e.preventDefault();
161
                    e.preventDefault();
157
                    document.location.href = data.node.a_attr.href;
162
                    document.location.href = data.node.a_attr.href;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt (-2 / +7 lines)
Lines 91-97 Link Here
91
                        }
91
                        }
92
                    },
92
                    },
93
                    "plugins" : [ "types" ]
93
                    "plugins" : [ "types" ]
94
                }).on('ready.jstree', function(){ $(this).jstree('open_all')
94
                }).on('ready.jstree', function(){
95
                    $(this).jstree('open_all')
96
                    $("#hier"+[% authid %]+"_anchor").on("click",
97
                        function(e){e.preventDefault(); return false;}
98
                    ).css("text-decoration", "none").css("color", "#333");
99
                    $(".currentauth").css("text-decoration", "none").css("color", "#333");
95
                }).bind("select_node.jstree", function (e, data) {
100
                }).bind("select_node.jstree", function (e, data) {
96
                    e.preventDefault();
101
                    e.preventDefault();
97
                    document.location.href = data.node.a_attr.href;
102
                    document.location.href = data.node.a_attr.href;
Lines 99-102 Link Here
99
            [% END %]
104
            [% END %]
100
        });
105
        });
101
    </script>
106
    </script>
102
[% END %]
107
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt (-2 / +9 lines)
Lines 13-18 Link Here
13
        [% Asset.css("lib/jquery/plugins/jstree/themes/default/style.min.css") | $raw %]
13
        [% Asset.css("lib/jquery/plugins/jstree/themes/default/style.min.css") | $raw %]
14
    [% END %]
14
    [% END %]
15
[% END %]
15
[% END %]
16
[%# FIXME authid is modified when passed authheadingdisplay %]
17
[%# It's then wrong in the JS %]
18
[% SET original_authid = authid %]
16
</head>
19
</head>
17
[% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
20
[% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
18
[% INCLUDE 'masthead.inc' %]
21
[% INCLUDE 'masthead.inc' %]
Lines 183-189 Link Here
183
                    }
186
                    }
184
                },
187
                },
185
                "plugins" : [ "types" ]
188
                "plugins" : [ "types" ]
186
            }).on('ready.jstree', function(){ $(this).jstree('open_all')
189
            }).on('ready.jstree', function(){
190
                $(this).jstree('open_all');
191
                $("#hier"+[% original_authid %]+"_anchor").on("click",
192
                    function(e){e.preventDefault(); return false;}
193
                ).css("text-decoration", "none").css("color", "#333");
194
                $(".currentauth").css("text-decoration", "none").css("color", "#333");
187
            }).bind("select_node.jstree", function (e, data) {
195
            }).bind("select_node.jstree", function (e, data) {
188
                e.preventDefault();
196
                e.preventDefault();
189
                document.location.href = data.node.a_attr.href;
197
                document.location.href = data.node.a_attr.href;
190
- 

Return to bug 11873