projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add -o flag to freeside-daily, to only bill for one month, RT#14904
[freeside.git]
/
httemplate
/
elements
/
header.html
diff --git
a/httemplate/elements/header.html
b/httemplate/elements/header.html
index
432e9c6
..
61d0313
100644
(file)
--- 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 <HEAD> section
}
$head = @_ ? shift : ''; #$head is for things that go in the <HEAD> 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;
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
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 ) {
my $company_name;
my @agentnums = $curuser->agentnums;
if ( scalar(@agentnums) == 1 ) {