@@ -, +, @@ images --- .../prog/en/modules/tools/upload-images.tt | 21 +++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt +++ a/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) {
  1. - - + + + Required
-
+
Upload progress:
0%
--