Lines 31-56
Link Here
|
31 |
"aaSorting": [] |
31 |
"aaSorting": [] |
32 |
} ) ); |
32 |
} ) ); |
33 |
|
33 |
|
34 |
//keep a copy of all budgets before removing the inactives |
34 |
$("select[name='all_budget_id'] .b_inactive").hide(); |
35 |
disabledBudgetsCopy = $("select[name='all_budget_id']").html(); |
35 |
$("select[name='budget_id'] .b_inactive").hide(); |
36 |
$("select[name='all_budget_id'] .b_inactive").remove(); |
|
|
37 |
$("select[name='budget_id'] .b_inactive").remove(); |
38 |
|
36 |
|
39 |
$("#showallbudgets").click(function() { |
37 |
$("#showallbudgets").click(function() { |
40 |
if ($(this).is(":checked")) { |
38 |
if ($(this).is(":checked")) { |
41 |
$("select[name='budget_id']").html(disabledBudgetsCopy); //Puts back all the funds |
39 |
$("select[name='budget_id'] .b_inactive").show(); |
42 |
} |
40 |
} |
43 |
else { |
41 |
else { |
44 |
$("select[name='budget_id'] .b_inactive").remove(); |
42 |
$("select[name='budget_id'] .b_inactive").hide(); |
45 |
} |
43 |
} |
46 |
}); |
44 |
}); |
47 |
|
45 |
|
48 |
$("#all_showallbudgets").click(function() { |
46 |
$("#all_showallbudgets").click(function() { |
49 |
if ($(this).is(":checked")) { |
47 |
if ($(this).is(":checked")) { |
50 |
$("select[name='all_budget_id']").html(disabledBudgetsCopy); //Puts back all the funds |
48 |
$("select[name='all_budget_id'] .b_inactive").show(); |
51 |
} |
49 |
} |
52 |
else { |
50 |
else { |
53 |
$("select[name='all_budget_id'] .b_inactive").remove(); |
51 |
$("select[name='all_budget_id'] .b_inactive").hide(); |
54 |
} |
52 |
} |
55 |
}); |
53 |
}); |
56 |
|
54 |
|
Lines 240-249
Link Here
|
240 |
<option value="">Select a fund</option> |
238 |
<option value="">Select a fund</option> |
241 |
[% FOREACH budget IN budget_loop %] |
239 |
[% FOREACH budget IN budget_loop %] |
242 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
240 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
|
|
241 |
[% IF budget.b_active %] |
243 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option> |
242 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option> |
|
|
243 |
[% ELSE %] |
244 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %] (inactive)</option> |
245 |
[% END %] |
244 |
[% ELSE %] |
246 |
[% ELSE %] |
245 |
[% IF budget.b_active %]<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
247 |
[% IF budget.b_active %]<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
246 |
[% ELSE %]<option value="[% budget.b_id %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
248 |
[% ELSE %]<option value="[% budget.b_id %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %] (inactive)</option> |
247 |
[% END %] |
249 |
[% END %] |
248 |
[% END %] |
250 |
[% END %] |
249 |
[% END %] |
251 |
[% END %] |
Lines 332-338
Link Here
|
332 |
<option value="">Select a fund</option> |
334 |
<option value="">Select a fund</option> |
333 |
[% FOREACH budget_loo IN budget_loop %] |
335 |
[% FOREACH budget_loo IN budget_loop %] |
334 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
336 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
335 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
337 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %] (inactive)</option> |
336 |
[% END %] |
338 |
[% END %] |
337 |
[% END %] |
339 |
[% END %] |
338 |
</select> |
340 |
</select> |
339 |
- |
|
|