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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +10 lines)
Lines 170-176 Link Here
170
                                    <p>
170
                                    <p>
171
                                        <a tabindex="0" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
171
                                        <a tabindex="0" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a>
172
                                        <span class="divider-vertical"></span>
172
                                        <span class="divider-vertical"></span>
173
                                        <a class="clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash-can" aria-hidden="true"></i> Clear</a>
173
                                        <a
174
                                            class="clearsh submit-form-link"
175
                                            href="#"
176
                                            data-method="post"
177
                                            data-action="/cgi-bin/koha/opac-search-history.pl"
178
                                            data-op="cud-delete"
179
                                            data-confirmation-msg="[% t('Are you sure you want to delete your search history?') | html %]"
180
                                            title="Delete your search history"
181
                                            ><i class="fa fa-trash-can" aria-hidden="true"></i> Clear</a
182
                                        >
174
                                    </p>
183
                                    </p>
175
                                [% END %]
184
                                [% END %]
176
                                <a tabindex="0" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a>
185
                                <a tabindex="0" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-4 lines)
Lines 136-144 Link Here
136
        var biblionumber = $(this).data("biblionumber");
136
        var biblionumber = $(this).data("biblionumber");
137
        delSingleRecord( biblionumber );
137
        delSingleRecord( biblionumber );
138
    });
138
    });
139
    $(".clearsh").on("click", function(){
140
        return confirmDelete( _("Are you sure you want to delete your search history?") );
141
    });
142
</script>
139
</script>
143
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
140
[% IF Koha.Preference( 'opacbookbag' ) == 1 %]
144
    [% Asset.js("js/basket.js") | $raw %]
141
    [% Asset.js("js/basket.js") | $raw %]
145
- 

Return to bug 39680