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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (+3 lines)
Lines 124-129 Link Here
124
[% Asset.js("lib/bootstrap/js/bootstrap.bundle.min.js") | $raw %]
124
[% Asset.js("lib/bootstrap/js/bootstrap.bundle.min.js") | $raw %]
125
[% Asset.js("lib/fontfaceobserver.min.js") | $raw %]
125
[% Asset.js("lib/fontfaceobserver.min.js") | $raw %]
126
[% Asset.js("lib/enquire.min.js") | $raw %]
126
[% Asset.js("lib/enquire.min.js") | $raw %]
127
<script>
128
    let logged_in_user_id = "[% logged_in_user.borrowernumber | html %]";
129
</script>
127
[% Asset.js("js/global.js") | $raw %]
130
[% Asset.js("js/global.js") | $raw %]
128
[% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
131
[% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
129
    <script>
132
    <script>
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js (-1 / +9 lines)
Lines 1-4 Link Here
1
$(document).ready(function() {
1
$(document).ready(function() {
2
3
    $('#addConcernModal').on('show.bs.modal', function (e) {
4
        if ( logged_in_user_id === "" ) {
5
            console.log("found logged_in_user_id");
6
            $('#loginModal').modal('show');
7
            return false;
8
        }
9
    });
10
2
    $('#addConcernModal').on('click', '#addConfirm', function(e) {
11
    $('#addConcernModal').on('click', '#addConfirm', function(e) {
3
        let reporter_id = $('#reporter_add').val();
12
        let reporter_id = $('#reporter_add').val();
4
        let biblio_id = $('#biblio_add').val();
13
        let biblio_id = $('#biblio_add').val();
5
- 

Return to bug 31028