From 2ec35aa0fa6f3a658cd3cb1754003d81d656172c Mon Sep 17 00:00:00 2001 From: sebastiaan Date: Thu, 6 Sep 2012 07:41:45 -0200 Subject: [PATCH] Disable Codemirror code completion for IE as it doesn't work properly and mostly just gets in your way --- .../umbraco/developer/Python/editPython.aspx.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs index b338248582..ce94e877fd 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs @@ -87,6 +87,12 @@ namespace umbraco.cms.presentation.developer S = SR.ReadToEnd(); SR.Close(); pythonSource.Text = S; + + //Autosuggest doesn't work properly in IE + if(HttpContext.Current.Request.Browser.Browser == "IE") + { + pythonSource.AutoSuggest = false; + } } private void InitializeComponent()