diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt index 0491e18d68..45659950fc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt @@ -17,16 +17,12 @@ $(document).ready(function(){ $("#image").click(function(){ $("#bibnum").show(); }); + $("#uploadfile").validate({ + submitHandler: function(form) { + ajaxFileUpload(); + } + }); }); -function CheckForm(f) { - if ($("#fileToUpload").value == '') { - alert(_("Please upload a file first.")); - } else { - return submitBackgroundJob(f); - } - return false; -} - //]]> @@ -72,11 +68,12 @@ function CheckForm(f) {