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

(-)a/koha-tmpl/intranet-tmpl/prog/js/funds_sorts.js (-3 / +3 lines)
Lines 1-7 Link Here
1
/* getAuthValueDropbox from js/acq.js is needed */
1
/* getAuthValueDropbox from js/acq.js is needed */
2
$(document).ready(function() {
2
$(document).ready(function() {
3
    // keep copy of the inactive budgets
3
    // keep copy of the inactive budgets
4
    disabledBudgetsCopy = $("select[name='all_budget_id']").html();
4
    disabledAllBudgetsCopy = $("select[name='all_budget_id']").html();
5
    disabledBudgetsCopy = $("select[name='budget_id']").first().html();
5
    $("select[name='all_budget_id'] .b_inactive").remove();
6
    $("select[name='all_budget_id'] .b_inactive").remove();
6
    $("select[name='budget_id'] .b_inactive").remove();
7
    $("select[name='budget_id'] .b_inactive").remove();
7
8
Lines 16-22 $(document).ready(function() { Link Here
16
17
17
    $("#all_showallbudgets").click(function() {
18
    $("#all_showallbudgets").click(function() {
18
        if ($(this).is(":checked")) {
19
        if ($(this).is(":checked")) {
19
            $("select[name='all_budget_id']").html(disabledBudgetsCopy);
20
            $("select[name='all_budget_id']").html(disabledAllBudgetsCopy);
20
        }
21
        }
21
        else {
22
        else {
22
            $("select[name='all_budget_id'] .b_inactive").remove();
23
            $("select[name='all_budget_id'] .b_inactive").remove();
23
- 

Return to bug 33939