@@ -, +, @@ "Add multiple copies" was activated --- .../prog/en/modules/cataloguing/additem.tt | 36 +++++++++++++++++----- 1 file changed, 29 insertions(+), 7 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -62,7 +62,24 @@ $(document).ready(function(){ "bKohaColumnsUseNames": true }, columns_settings); + var multiCopyControl = $("#add_multiple_copies_span"); + var addMultipleBlock = $("#addmultiple"); + var addSingleBlock = $("#addsingle"); + multiCopyControl.hide(); + $("#add_multiple_copies").on("click",function(e){ + e.preventDefault; + addMultipleBlock.toggle(); + addSingleBlock.toggle(); + multiCopyControl.toggle(); + }); + $("#cancel_add_multiple").on("click",function(e){ + e.preventDefault(); + addMultipleBlock.toggle(); + addSingleBlock.toggle(); + multiCopyControl.toggle(); + }); }); + function Check(f) { var total_errors = CheckMandatorySubfields(f); if (total_errors==0) { @@ -288,14 +305,19 @@ function confirm_deletion() { when pressing the enter key, while in fact it is the first submit button that is validated, in our case the "add (single) item" button. It is a bit tricky, but necessary in the sake of UI correctness. --> - - - -