Lines 202-220
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
202 |
$(oTable).treetable('collapseAll'); |
202 |
$(oTable).treetable('collapseAll'); |
203 |
}); |
203 |
}); |
204 |
|
204 |
|
205 |
$("#hide_inactive").click(function(e){ |
205 |
[% UNLESS budget_period_id %] |
|
|
206 |
$("#hide_inactive").click(function(e){ |
206 |
e.preventDefault(); |
207 |
e.preventDefault(); |
207 |
oTable.fnFilter( 0, 0 ); // Hide active=0 |
208 |
oTable.fnFilter( 0, 0 ); // Hide active=0 |
208 |
}); |
209 |
}); |
209 |
$("#show_inactive").click(function(e){ |
210 |
$("#show_inactive").click(function(e){ |
210 |
e.preventDefault(); |
211 |
e.preventDefault(); |
211 |
oTable.fnFilter( '', 0 ); |
212 |
oTable.fnFilter( '', 0 ); |
212 |
}); |
213 |
}); |
|
|
214 |
$("#hide_inactive").click(); |
215 |
[% END %] |
213 |
|
216 |
|
214 |
$("#filterbutton").click(function() { |
217 |
$("#filterbutton").click(function() { |
215 |
$("#fundfilters").slideToggle(0); |
218 |
$("#fundfilters").slideToggle(0); |
216 |
}); |
219 |
}); |
217 |
$("#hide_inactive").click(); |
|
|
218 |
}); |
220 |
}); |
219 |
//]]> |
221 |
//]]> |
220 |
</script> |
222 |
</script> |
Lines 264-275
var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget")
Link Here
|
264 |
[% IF budgets %] |
266 |
[% IF budgets %] |
265 |
|
267 |
|
266 |
<table id="budgeth"> |
268 |
<table id="budgeth"> |
267 |
<caption> |
269 |
[% UNLESS budget_period_id %] |
|
|
270 |
<caption> |
268 |
<span class="actions"><a href="#" id="expand_all">Expand all</a> |
271 |
<span class="actions"><a href="#" id="expand_all">Expand all</a> |
269 |
| <a href="#" id="collapse_all">Collapse all</a> |
272 |
| <a href="#" id="collapse_all">Collapse all</a> |
270 |
| <a href="#" id="hide_inactive">Hide inactive budgets</a> |
273 |
| <a href="#" id="hide_inactive">Hide inactive budgets</a> |
271 |
| <a href="#" id="show_inactive">Show inactive budgets</a></span> |
274 |
| <a href="#" id="show_inactive">Show inactive budgets</a></span> |
272 |
</caption> |
275 |
</caption> |
|
|
276 |
[% END %] |
273 |
<thead> |
277 |
<thead> |
274 |
<tr> |
278 |
<tr> |
275 |
<th>Active</th> |
279 |
<th>Active</th> |
276 |
- |
|
|