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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-1 / +1 lines)
Lines 136-142 Link Here
136
                            <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
136
                            <option selected="selected" value="[% hold.branchcode | html %]">[% Branches.GetName(hold.branchcode) | html %]</option>
137
                            <option value="" disabled="disabled" class="loading">Loading...</option>
137
                            <option value="" disabled="disabled" class="loading">Loading...</option>
138
                        </select>
138
                        </select>
139
                        <img class="loading_[% hold.reserve_id %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
139
                        <img class="loading_[% hold.reserve_id | html %]" src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" style="display:none;"/>
140
                    [% END %]
140
                    [% END %]
141
                [% END %]
141
                [% END %]
142
            </td>
142
            </td>
(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-3 / +2 lines)
Lines 308-314 $(document).ready(function() { Link Here
308
        var hold_id = $(this).data('hold_id');
308
        var hold_id = $(this).data('hold_id');
309
        $(".loading_"+hold_id).show();
309
        $(".loading_"+hold_id).show();
310
        var preselected = $(this).data('selected');
310
        var preselected = $(this).data('selected');
311
        var api_url = '/api/v1/holds/'+hold_id+'/pickup_locations';
311
        var api_url = '/api/v1/holds/' + encodeURIComponent(hold_id) + '/pickup_locations';
312
        $.ajax({
312
        $.ajax({
313
            method: "GET",
313
            method: "GET",
314
            url: api_url,
314
            url: api_url,
Lines 318-324 $(document).ready(function() { Link Here
318
                    if( preselected == library.library_id ){
318
                    if( preselected == library.library_id ){
319
                        selected = ' selected="selected" ';
319
                        selected = ' selected="selected" ';
320
                    } else { selected = ""; }
320
                    } else { selected = ""; }
321
                    dropdown += '<option value="'+library.library_id+'"'+selected+'>'+library.name+'</option>';
321
                    dropdown += '<option value="' + library.library_id.escapeHtml() + '"' + selected + '>' + library.name.escapeHtml() + '</option>';
322
                });
322
                });
323
                this_dropdown.html(dropdown);
323
                this_dropdown.html(dropdown);
324
                this_dropdown.data("loaded",1);
324
                this_dropdown.data("loaded",1);
325
- 

Return to bug 26988