From 9951806c566b27c60e477301f3e6208393c487a9 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 Content-Type: text/plain; charset="utf-8" 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. --- .../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 af24281..529edd5 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.1.4