From: Sam H. v. a. <we...@ma...> - 2007-08-25 18:29:01
|
Log Message: ----------- backport (dpvc): Work around IE bug where pressing return submits a form but does not set the submit button's value properly in some circumstances. Tags: ---- rel-2-4-dev Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: FileManager.pm Revision Data ------------- Index: FileManager.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm,v retrieving revision 1.26.2.2 retrieving revision 1.26.2.3 diff -Llib/WeBWorK/ContentGenerator/Instructor/FileManager.pm -Llib/WeBWorK/ContentGenerator/Instructor/FileManager.pm -u -r1.26.2.2 -r1.26.2.3 --- lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm +++ lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm @@ -133,7 +133,7 @@ $self->{courseRoot} = $courseRoot; $self->{courseName} = $courseName; - my $action = $r->param('action') || $r->param('formAction') || 'Init'; + my $action = $r->param('action') || $r->param('formAction') || $r->param("confirmed") || 'Init'; for ($action) { /^Refresh/i and do {$self->Refresh; last}; @@ -672,7 +672,7 @@ ); print CGI::end_table(); - print CGI::hidden({name=>"confirmed",value=>1}); + print CGI::hidden({name=>"confirmed",value=>"Delete"}); foreach my $file (@files) {print CGI::hidden({name=>"files",value=>$file})} $self->HiddenFlags; } @@ -892,7 +892,7 @@ ), ); print CGI::end_table(); - print CGI::hidden({name=>"confirmed", value=>1}); + print CGI::hidden({name=>"confirmed", value=>$button}); $self->HiddenFlags; print CGI::script("window.document.FileManager.name.focus()"); } |