Skip to content

Commit

Permalink
Redo the correct changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Apr 1, 2022
1 parent b0e31fe commit 2726fcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cms/forms/widgets.py
Expand Up @@ -78,9 +78,9 @@ def _build_widgets(self):

def _build_script(self, name, value, attrs={}):
return r"""<script type="text/javascript">
var CMS = window.CMS || {};
var CMS = window.CMS || {{}};
CMS.Widgets = CMS.Widgets || {};
CMS.Widgets = CMS.Widgets || {{}};
CMS.Widgets._pageSelectWidgets = CMS.Widgets._pageSelectWidgets || [];
CMS.Widgets._pageSelectWidgets.push({{
name: '{name}'
Expand Down Expand Up @@ -125,9 +125,9 @@ def get_ajax_url(self, ajax_view):

def _build_script(self, name, value, attrs={}):
return r"""<script type="text/javascript">
var CMS = window.CMS || {};
var CMS = window.CMS || {{}};
CMS.Widgets = CMS.Widgets || {};
CMS.Widgets = CMS.Widgets || {{}};
CMS.Widgets._pageSmartLinkWidgets = CMS.Widgets._pageSmartLinkWidgets || [];
CMS.Widgets._pageSmartLinkWidgets.push({{
id: '{element_id}',
Expand Down

0 comments on commit 2726fcc

Please sign in to comment.