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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-6 / +8 lines)
Lines 130-142 $(document).ready(function() Link Here
130
        });
130
        });
131
        [% END %]
131
        [% END %]
132
        
132
        
133
        //keep a copy of all budgets before removing the inactives
134
        disabledBudgetsCopy = $('#budget_id').html();
135
        $('#budget_id .b_inactive').remove();
136
133
        $('#showallbudgets').click(function() {
137
        $('#showallbudgets').click(function() {
134
            if ( $('#budget_id .b_inactive').is(":visible") )
138
            if ($(this).is(":checked")) {
135
            {
139
                $('#budget_id').html(disabledBudgetsCopy); //Puts back all the funds
136
            $('#budget_id .b_inactive').hide();
137
            }
140
            }
138
            else {
141
            else {
139
            $('#budget_id .b_inactive').show();
142
                $('#budget_id .b_inactive').remove();
140
            }
143
            }
141
        });
144
        });
142
    });
145
    });
Lines 402-408 $(document).ready(function() Link Here
402
                        <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
405
                        <option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
403
                    [% ELSE %]
406
                    [% ELSE %]
404
                        [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
407
                        [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
405
                        [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" style="display : none;">[% budget_loo.b_txt %]</option>    
408
                        [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %]</option>
406
                        [% END %]
409
                        [% END %]
407
                    [% END %]
410
                    [% END %]
408
                [% END %]
411
                [% END %]
409
- 

Return to bug 8659