From 7f1c784629b7f98763b8467d27693e9b170bfef3 Mon Sep 17 00:00:00 2001 From: louyihua Date: Tue, 15 Jul 2014 11:34:09 +0800 Subject: [PATCH] Add defininition of window.location.origin in both CMS/LMS The same bug in studio was fixed in #3893, and as TinyMCE is also used in LMS, it should be also fixed in LMS. Here a common javascript file called 'ie_shim.js' is added, so that in the future it can be used for other IE compatibility purposes too. --- cms/templates/base.html | 11 +++-------- common/static/js/src/ie_shim.js | 16 ++++++++++++++++ lms/envs/common.py | 1 + 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 common/static/js/src/ie_shim.js diff --git a/cms/templates/base.html b/cms/templates/base.html index e4bd066d24..cae3e8f319 100644 --- a/cms/templates/base.html +++ b/cms/templates/base.html @@ -1,4 +1,4 @@ -## -*- coding: utf-8 -*- +## -*- coding: utf-8 -*- <%! from django.utils.translation import ugettext as _ %> <%namespace name='static' file='static_content.html'/> @@ -39,12 +39,6 @@