From b1f98ae140d188d7801ae7a268e91365e6155cb4 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 22 Jul 2014 00:07:00 +0800 Subject: Bug 1041559: "Please wait while your bugs are retrieved" shown above menu header for search error pages --- Bugzilla/CGI.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Bugzilla/CGI.pm') diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 0adb46a62..a12fb284b 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -310,9 +310,24 @@ sub multipart_start { $headers .= "Set-Cookie: ${cookie}${CGI::CRLF}"; } $headers .= $CGI::CRLF; + $self->{_multipart_in_progress} = 1; return $headers; } +sub close_standby_message { + my ($self, $contenttype, $disposition) = @_; + + if ($self->{_multipart_in_progress}) { + print $self->multipart_end(); + print $self->multipart_start(-type => $contenttype, + -content_disposition => $disposition); + } + else { + print $self->header(-type => $contenttype, + -content_disposition => $disposition); + } +} + # Override header so we can add the cookies in sub header { my $self = shift; -- cgit v1.2.3-24-g4f1b