Lines 92-104
$(document).ready(function()
Link Here
|
92 |
}); |
92 |
}); |
93 |
[% END %] |
93 |
[% END %] |
94 |
|
94 |
|
|
|
95 |
//keep a copy of disabled budgets before removing them |
96 |
disabledBudgetsCopy = $('#budget_id .b_inactive').clone(); |
97 |
$('#budget_id .b_inactive').remove(); |
98 |
|
95 |
$('#showallbudgets').click(function() { |
99 |
$('#showallbudgets').click(function() { |
96 |
if ( $('#budget_id .b_inactive').is(":visible") ) |
100 |
if ($(this).attr('checked') === true) { |
97 |
{ |
101 |
$('#budget_id').prepend(disabledBudgetsCopy); // |
98 |
$('#budget_id .b_inactive').hide(); |
|
|
99 |
} |
102 |
} |
100 |
else { |
103 |
else { |
101 |
$('#budget_id .b_inactive').show(); |
104 |
$('#budget_id .b_inactive').remove(); |
102 |
} |
105 |
} |
103 |
}); |
106 |
}); |
104 |
}); |
107 |
}); |
Lines 333-339
$(document).ready(function()
Link Here
|
333 |
<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> |
336 |
<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> |
334 |
[% ELSE %] |
337 |
[% ELSE %] |
335 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option> |
338 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option> |
336 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" style="display : none;">[% budget_loo.b_txt %]</option> |
339 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %]</option> |
337 |
[% END %] |
340 |
[% END %] |
338 |
[% END %] |
341 |
[% END %] |
339 |
[% END %] |
342 |
[% END %] |
340 |
- |
|
|