--- loncom/imspackages/imsimportdocs.pm 2013/07/27 22:04:49 1.31 +++ loncom/imspackages/imsimportdocs.pm 2013/09/30 17:42:12 1.32 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: imsimportdocs.pm,v 1.31 2013/07/27 22:04:49 raeburn Exp $ +# $Id: imsimportdocs.pm,v 1.32 2013/09/30 17:42:12 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -48,9 +48,9 @@ sub jscript_one { es => 'Enroll students only', ea => 'Enroll all users', nr => 'Not required', - id => 'You must select one of the additional options when importing Disussion Boards', - ie => 'You must select one of the additional options when importing Enrollment', - ct => 'You must check at least one Content Type', + id => 'You must select one of the additional options when importing Discussion Boards.', + ie => 'You must select one of the additional options when importing Enrollment.', + ct => 'You must check at least one Content Type.', ); return <<"ENDJS"; function setOptions(caller,itemnum) { @@ -225,10 +225,11 @@ sub display_one { if ($unzip_result ne 'ok') { $r->print( - '

' - .&mt('Processing of your IMS package failed because the file you' - .' uploaded could not be unzipped.') - .'

' + &Apache::loncommon::confirmwrapper( + &Apache::lonhtmlcommon::confirm_success( + &mt('Processing of your IMS package failed because the file you' + .' uploaded could not be unzipped.'),1) + .'
'.&mt('Error: [_1]',$unzip_result)) ); return(); } @@ -239,9 +240,10 @@ sub display_one { \%resinfo,'choose',\%includedres,\%includeditems); if ($manifest_result ne 'ok') { $r->print( - '

' - .&mt('Unpacking of your IMS package failed because an IMS manifest file was not located in the package.') - .'

' + '
'.&Apache::loncommon::confirmwrapper( + &Apache::lonhtmlcommon::confirm_success( + &mt('Unpacking of your IMS package failed because an IMS manifest file' + .' was not located in the package.'),1)) ); return(); }