--- loncom/interface/lonmenu.pm 2016/03/15 14:25:26 1.440 +++ loncom/interface/lonmenu.pm 2022/07/01 03:14:31 1.525 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.440 2016/03/15 14:25:26 raeburn Exp $ +# $Id: lonmenu.pm,v 1.525 2022/07/01 03:14:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -99,7 +99,7 @@ It gets filled in the BEGIN block of thi =over -=item prep_menuitems(\@menuitem) +=item prep_menuitems(\@menuitem,$target,$listclass,$linkattr) This routine wraps a menuitem in proper HTML. It is used by primary_menu() and secondary_menu(). @@ -124,9 +124,13 @@ dropdown list when mouse hovers over top (no hover psuedo class) via LC_hoverable class for
'; + if ($type eq 'map') { + $lt{'miss'} .= &mt('Submissions are missing for [quant,_1,question part,question parts] in this folder.',$missing); + } else { + $lt{'miss'} .= &mt('Submissions are missing for [quant,_1,part] in this question.',$missing); + } + if ($missing > 1) { + $lt{'miss'} .= ' '.&mt('If you confirm you are done you will be unable to submit answers for them.').''; + } else { + $lt{'miss'} .= ' '.&mt('If you confirm you are done you will be unable to submit an answer for it.').'
'; + } + } + $donebuttontext = &HTML::Entities::encode($donebuttontext,'<>&"'); + if ($proctor) { + if ($height !~ /^\d+$/) { + $height = 400; + if ($missing) { + $height += 60; + } + } + if ($width !~ /^\d+$/) { + $width = 400; + if ($missing) { + $width += 60; + } + } + return <$lt{'preamble'} $lt{$type}
+ $lt{'miss'}$lt{'proctor'}
- @@ -1667,22 +2182,32 @@ sub done_button_js { END - } else { - if ($height !~ /^\d+$/) { - $height = 320; + } else { + if ($height !~ /^\d+$/) { + $height = 320; + if ($missing) { + $height += 60; } - if ($width !~ /^\d+$/) { - $width = 320; + } + if ($width !~ /^\d+$/) { + $width = 320; + if ($missing) { + $width += 60; } - return <';
+ }
+ return < $lt{'preamble'} $lt{$type} $lt{'okdone'} $lt{'cancel'} $lt{'preamble'} $lt{$type} $lt{'miss'} $lt{'okdone'} $lt{'cancel'}