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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc (+1 lines)
Lines 137-142 Link Here
137
                                <button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button>
137
                                <button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button>
138
                                <button type="button" class="btn btn-success" id="consentAcceptSelected">Accept selected non-essential cookies</button>
138
                                <button type="button" class="btn btn-success" id="consentAcceptSelected">Accept selected non-essential cookies</button>
139
                            [% END %]
139
                            [% END %]
140
                            <button type="button" class="btn btn-secondary consentCloseModal">Cancel</button>
140
                        </div>
141
                        </div>
141
                    </div>
142
                    </div>
142
                </div> <!-- /.modal-content -->
143
                </div> <!-- /.modal-content -->
(-)a/koha-tmpl/intranet-tmpl/prog/js/cookieconsent.js (+7 lines)
Lines 159-164 Link Here
159
            runConsentedCode();
159
            runConsentedCode();
160
        });
160
        });
161
161
162
        // "Cancel" handler
163
        $('.consentCloseModal').on('click', function(e) {
164
            e.preventDefault();
165
            hideContainer();
166
            showConsentBar();
167
        });
168
162
        // "More information" handler
169
        // "More information" handler
163
        $('#consentMoreInfo, #viewCookieConsents').on(
170
        $('#consentMoreInfo, #viewCookieConsents').on(
164
            'click',
171
            'click',
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (+1 lines)
Lines 496-501 Link Here
496
                                <button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button>
496
                                <button type="button" class="btn btn-primary consentAcceptEssential">Accept only essential cookies</button>
497
                                <button type="button" class="btn btn-warning" id="consentAcceptSelected">Accept selected non-essential cookies</button>
497
                                <button type="button" class="btn btn-warning" id="consentAcceptSelected">Accept selected non-essential cookies</button>
498
                            [% END %]
498
                            [% END %]
499
                            <button type="button" class="btn btn-secondary consentCloseModal">Cancel</button>
499
                        </div>
500
                        </div>
500
                    </div>
501
                    </div>
501
                </div> <!-- /.modal-content -->
502
                </div> <!-- /.modal-content -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/cookieconsent.js (-1 / +7 lines)
Lines 175-180 Link Here
175
            showYourCookies();
175
            showYourCookies();
176
        });
176
        });
177
177
178
        // "Cancel" handler
179
        $('.consentCloseModal').on('click', function(e) {
180
            e.preventDefault();
181
            hideContainer();
182
            showConsentBar();
183
        });
184
178
        // "More information" handler
185
        // "More information" handler
179
        $('#consentMoreInfo, #cookieConsentButton, #viewCookieConsents').on(
186
        $('#consentMoreInfo, #cookieConsentButton, #viewCookieConsents').on(
180
            'click',
187
            'click',
181
- 

Return to bug 27378