From 0761c513f21668ad410adbfdd703bc38bc46dd5c 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 --- .../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