diff options
| -rw-r--r-- | FS/FS/Conf.pm | 8 | ||||
| -rwxr-xr-x | httemplate/view/cust_main.cgi | 7 | 
2 files changed, 15 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index a6cbf52cf..1a457219b 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -4276,6 +4276,14 @@ and customer address. Include units.',      'type'        => 'checkbox',    }, +  { +    'key'         => 'ie-compatibility_mode', +    'section'     => 'UI', +    'description' => "Compatibility mode META tag for Internet Explorer, used on the customer view page.  Not necessary in normal operation unless custom content (notes, cust_main-custom_link) is included on customer view that is incompatibile with newer IE verisons.", +    'type'        => 'select', +    'select_enum' => [ '', '7', 'EmulateIE7', '8', 'EmulateIE8' ], +  }, +    { key => "apacheroot", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },    { key => "apachemachine", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },    { key => "apachemachines", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" }, diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index e6db0a6c1..671aba72f 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -1,5 +1,6 @@  <% include('/elements/header.html', {               'title' => $title, +             'head'  => $head,               'nobr'  => 1,            })  %> @@ -321,4 +322,10 @@ my %viewname = reverse %views;  my $view =  $cgi->param('show') || $curuser->default_customer_view; +my $ie_compat = $conf->config('ie-compatibility_mode'); +my $head = ''; +if ( $ie_compat ) { +  $head = qq(<meta http-equiv="X-UA-Compatible" content="IE=$ie_compat" />); +} +  </%init>  | 
