Bug 8255: allow local cover images to be cached
[koha_gimpoz] / test / progressbarsubmit.pl
index a0dbde1..0982f58 100755 (executable)
@@ -3,11 +3,11 @@
 # Script for testing progressbar, part 2 - json submit handler
 #   and Z39.50 lookups
 
-# Koha library project  www.koha.org
+# Koha library project  www.koha-community.org
 
 # Licensed under the GPL
 
-# Copyright 2000-2002 Katipo Communications
+# Copyright 2010  Catalyst IT, Ltd
 #
 # This file is part of Koha.
 #
@@ -25,7 +25,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
-#use warnings; FIXME - Bug 2505
+use warnings;
 
 # standard or CPAN modules used
 use CGI;
@@ -72,7 +72,7 @@ if ($completedJobID) {
 
             my $reply = CGI->new("");
             print $reply->header(-type => 'text/html');
-            print "{ jobID: '$jobID' }";
+            print '{"jobID":"' . $jobID . '"}';
             exit 0;
         } elsif (defined $pid) {
         # if we get here, we're a child that has detached
@@ -84,8 +84,8 @@ if ($completedJobID) {
             close STDERR;
 
             foreach (1..100) {
-                sleep 1;
                 $job->progress( $_ );
+                sleep 1;
             }
             $job->finish();
         } else {