From dd867b10b81ff34020fb036549bceb815238bea2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 6 May 2016 12:15:33 -0400 Subject: [PATCH] Bug 16468 - Remove last "onclick" from the stage MARC records template This patch reviseds the stage MARC records template, removing one more "onclick" attribute from the markup and defining that event in the script. This patch also corrects a missing quotation mark in the HTML. I have done some reindentation to that section. To test, apply the patch and go to Tools -> Stage MARC records for import. - Select a MARC file for import. - Click the "Upload file" button. - Click the "Stage for import" button. Your import should be correctly staged. Signed-off-by: Claire Gravely Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../prog/en/modules/tools/stage-marc-import.tt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt index af2428149e..529edd5a7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt @@ -31,6 +31,9 @@ $(document).ready(function(){ e.preventDefault(); CancelUpload(); }); + $("#mainformsubmit").on("click",function(){ + return CheckForm( document.getElementById("processfile")); + }); }); function CheckForm(f) { if ($("#fileToUpload").value == '') { @@ -179,7 +182,14 @@ function cbUpload( status, fileid ) {
  • - +
  • @@ -254,7 +264,7 @@ function cbUpload( status, fileid ) { -
    +
    Job progress:
    0%
    -- 2.39.5