X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;fp=httemplate%2Felements%2Fheader.html;h=61d031376a8c30ee8a34afa4550574a340373cbf;hp=432e9c6afb49d77a23b68328081bd9c219c148e4;hb=f1cfd3ba31c346283520ea88ad3b8b265559db02;hpb=accf803227b745b7082db3dbbd543b92d3a0f570 diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 432e9c6af..61d031376 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -190,13 +190,6 @@ if ( ref($_[0]) ) { $head = @_ ? shift : ''; #$head is for things that go in the section } -if ( !defined($mobile) ) { - $mobile = FS::UI::Web::is_mobile(); -} -if ( $cgi->param('mobile') =~ /^(\d)$/ ) { # allow client to override - $mobile = $1; -} - my $conf = new FS::Conf; my $curuser = $FS::CurrentUser::CurrentUser; @@ -204,6 +197,13 @@ my $curuser = $FS::CurrentUser::CurrentUser; my $menu_position = $curuser->option('menu_position') || 'top'; #new default for 1.9 +if ( !defined($mobile) ) { + $mobile = $curuser->option('mobile_menu',1) && FS::UI::Web::is_mobile(); +} +if ( $cgi->param('mobile') =~ /^(\d)$/ ) { # allow client to override + $mobile = $1; +} + my $company_name; my @agentnums = $curuser->agentnums; if ( scalar(@agentnums) == 1 ) {