--- loncom/interface/lonhelp.pm 2013/12/18 01:23:21 1.42 +++ loncom/interface/lonhelp.pm 2013/12/30 00:23:40 1.43 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonhelp.pm,v 1.42 2013/12/18 01:23:21 raeburn Exp $ +# $Id: lonhelp.pm,v 1.43 2013/12/30 00:23:40 raeburn Exp $ # # .tex help system web server handler # @@ -228,13 +228,21 @@ sub handler { if ($env{'form.searchterm'}=~/\w/) { $caller = 'search'; } - my $starthash = { - only_body => 1, - add_entries => { - 'onload' => "javascript:expand_div('$caller');", - }, - }; + my $starthash; + + if ($env{'browser.mobile'}) { + $starthash = { + only_body => 1, + add_entries => { + 'onload' => "javascript:expand_div('$caller');", + }, + }; + } else { + $starthash = { + only_body => 1, + }; + } my $firstfile; my $start_page= &Apache::loncommon::start_page('LON-CAPA Help',undef,$starthash);