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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+4 lines)
Lines 3760-3765 input.renew { Link Here
3760
        transform: translateY(-50%);
3760
        transform: translateY(-50%);
3761
    }
3761
    }
3762
3762
3763
    #generic_confirm_search_count {
3764
        margin: 1em 0 1em 10em;
3765
    }
3766
3763
    #generic_confirm_search {
3767
    #generic_confirm_search {
3764
        display: block;
3768
        display: block;
3765
        visibility: hidden;
3769
        visibility: hidden;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt (-1 / +4 lines)
Lines 298-304 Link Here
298
                                            [% END %]
298
                                            [% END %]
299
                                        </select>
299
                                        </select>
300
                                        [% IF Koha.Preference('ILLCheckAvailability') %]
300
                                        [% IF Koha.Preference('ILLCheckAvailability') %]
301
                                            <button type="button" id="generic_confirm_search">Search selected partners</button>
301
                                            <div id="generic_confirm_search_count">Partners available for searching: <span id="generic_confirm_enabled">none</span></div>
302
                                            <div id="generic_confirm_search">
303
                                                <button type="button">Search selected partners</button>
304
                                            </div>
302
                                        [% END %]
305
                                        [% END %]
303
                                    </li>
306
                                    </li>
304
                                    <li>
307
                                    <li>
(-)a/koha-tmpl/intranet-tmpl/prog/js/ill-availability-partner.js (-2 / +18 lines)
Lines 1-8 Link Here
1
$(document).ready(function() {
1
$(document).ready(function() {
2
    var enabled_names = [];
3
    $('#partners option').each(function() {
4
        var partner = $(this);
5
        var partner_id = partner.data('partner-id');
6
        if (isEnabled(partner_id)) {
7
            enabled_names.push(partner.text().trim());
8
        }
9
    });
10
    $('#generic_confirm_enabled').text(enabled_names.join(', '));
11
2
    $('#partners').change(function() {
12
    $('#partners').change(function() {
3
        var selected = [];
13
        var selected = [];
4
        $('#partners option:selected').each(function() {
14
        $('#partners option:selected').each(function() {
5
            selected.push($(this).data('partner-id'));
15
            var partner_id = $(this).data('partner-id');
16
            if (isEnabled(partner_id)) {
17
                selected.push(partner_id);
18
            }
6
        });
19
        });
7
        if (selected.length > 0) {
20
        if (selected.length > 0) {
8
            $('#generic_confirm_search').css('visibility', 'initial');
21
            $('#generic_confirm_search').css('visibility', 'initial');
Lines 21-24 $(document).ready(function() { Link Here
21
    $('#partnerSearch').on('hide.bs.modal', function() {
34
    $('#partnerSearch').on('hide.bs.modal', function() {
22
        $.fn.dataTable.tables({ api: true }).destroy();
35
        $.fn.dataTable.tables({ api: true }).destroy();
23
    });
36
    });
37
38
    function isEnabled(id) {
39
        return services[0].enabled.indexOf(id.toString()) > -1;
40
    };
24
});
41
});
25
- 

Return to bug 23173