Browse Source

#927 Detect IE7 (or compatibility mode) and warn the user that the application cannot be used with such browsers.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3247 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 years ago
parent
commit
dacd27f669
1 changed files with 9 additions and 0 deletions
  1. 9 0
      setup/wizardsteps.class.inc.php

+ 9 - 0
setup/wizardsteps.class.inc.php

@@ -66,6 +66,15 @@ class WizStepWelcome extends WizardStep
 		$sMiscOptions = $this->oWizard->GetParameter('misc_options', json_encode($aMiscOptions));
 		$this->oWizard->SetParameter('misc_options', $sMiscOptions);
 		
+		$oPage->add("<!--[if lt IE 8]><div id=\"old_ie\"></div><![endif]-->");
+		$oPage->add_ready_script(
+<<<EOF
+		if ($('#old_ie').length > 0)
+		{
+			alert("Internet Explorer version 7 or older is NOT supported! (Check that IE is not running in compatibility mode)");
+		}
+EOF
+		);
 		$oPage->add('<h1>'.ITOP_APPLICATION.' Installation Wizard</h1>');
 		$aResults = SetupUtils::CheckPHPVersion($oPage);
 		$this->bCanMoveForward = true;