--- loncom/interface/loncommon.pm 2016/04/09 18:43:32 1.1241 +++ loncom/interface/loncommon.pm 2016/05/03 22:33:52 1.1242 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1241 2016/04/09 18:43:32 raeburn Exp $ +# $Id: loncommon.pm,v 1.1242 2016/05/03 22:33:52 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5588,7 +5588,7 @@ sub bodytag { if (($crstype eq 'Placement') && (!$env{'request.role.adv'})) { undef($role); } else { - $role = '('.$role.')' if $role; + $role = '('.$role.')' if ($role && !$env{'browser.mobile'}); } if ($env{'request.state'} eq 'construct') { $forcereg=1; } @@ -5892,6 +5892,11 @@ div.LC_confirm_box .LC_success img { vertical-align: middle; } +.LC_maxwidth { + max-width: 100%; + height: auto; +} + .LC_icon { border: none; vertical-align: middle; @@ -7962,7 +7967,13 @@ OFFLOAD $result .= '>' .$inhibitprint .$head_extra; - if ($env{'browser.mobile'}) { + my $clientmobile; + if (($env{'user.name'} eq '') && ($env{'user.domain'} eq '')) { + (undef,undef,undef,undef,undef,undef,$clientmobile) = &decode_user_agent(); + } else { + $clientmobile = $env{'browser.mobile'}; + } + if ($clientmobile) { $result .= ' ';