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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +20 lines)
Lines 161-166 function checkMultiHold() { Link Here
161
            $("#requestany").prop("checked",true);
161
            $("#requestany").prop("checked",true);
162
        }
162
        }
163
    });
163
    });
164
    var prev_rank_request;
165
    $("select[name=rank-request]").on("focus", function() {
166
        prev_rank_request = $(this).val();
167
    }).change(function() {
168
        var row = $(this).parents("tr:first");
169
        var value = parseInt($(this).val());
170
        var after = row.parent().find("tr:nth-child("+(value+1)+")");
171
172
        if (prev_rank_request > value) {
173
            row.insertBefore(after);
174
        } else {
175
            row.insertAfter(after);
176
        }
177
178
        var next_priority = 1;
179
        $("select[name=rank-request]").each(function () {
180
            $(this).val(next_priority);
181
            next_priority++;
182
        });
183
    });
164
184
165
    $(".clear-date").on("click",function(e){
185
    $(".clear-date").on("click",function(e){
166
        e.preventDefault();
186
        e.preventDefault();
167
- 

Return to bug 19636