|
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 413-419
$(document).ready(function()
Link Here
|
| 413 |
<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> |
416 |
<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> |
| 414 |
[% ELSE %] |
417 |
[% ELSE %] |
| 415 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option> |
418 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option> |
| 416 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" style="display : none;">[% budget_loo.b_txt %]</option> |
419 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %]</option> |
| 417 |
[% END %] |
420 |
[% END %] |
| 418 |
[% END %] |
421 |
[% END %] |
| 419 |
[% END %] |
422 |
[% END %] |
| 420 |
- |
|
|