@@ -, +, @@ --- .../intranet-tmpl/prog/en/modules/admin/aqplan.tt | 30 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt @@ -37,6 +37,26 @@ alert(alertString2); } } + + function clear_edit() { + var cancel = confirm(_("Are you sure you want to cancel your changes?")); + if ( !cancel ) return; + var edit_row = $("#edit_row"); + $(edit_row).find("input").each(function(){ + var type = $(this).attr("type"); + if (type != "button" && type != "submit" ) { + $(this).val(""); + $(this).prop('disabled', false); + } + if ( type == "checkbox" ) { + $(this).prop('checked', false); + } + }); + $(edit_row).find("select").prop('disabled', false); + $(edit_row).find("select option:first").attr("selected", "selected"); + $(edit_row).find("td:last input[name='clear']").remove(); + } + $(document).ready(function() { $("#selections input").on("change",function(e){ var num = $(this).attr("id"); @@ -114,13 +134,14 @@ [% authvals_ro.code %] [% END %] - Fund remaining  + Fund remaining + Actions [% FOREACH budget_line IN budget_lines %] - + [% IF ( budget_line.budget_lock ) %] [% ELSE %] @@ -186,9 +207,10 @@ - + [% UNLESS ( budget_line.budget_lock ) %] - + + [% ELSE %]
not owned
[% END %] --