@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/js/letter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/letter.js +++ a/koha-tmpl/intranet-tmpl/prog/js/letter.js @@ -29,7 +29,7 @@ function checkCodes( new_lettercode, new_branchcode ){ } }); } - +//This has bug function confirmOverwrite( new_lettercode, new_branchcode ){ var letter_exists; $.ajax({ @@ -127,7 +127,7 @@ $(document).ready(function() { var new_lettercode = $("#code").val(); var new_branchcode = $("#branch").val(); var confirm = confirmOverwrite( new_lettercode, new_branchcode ); - if( confirm && confirm === false){ + if(confirm === false){ return false; } } --