Skip to content

Commit

Permalink
Merge pull request django-fluent#88 from seroy/issue81
Browse files Browse the repository at this point in the history
fixes Uncaught ReferenceError: django_wysiwyg is not defined
  • Loading branch information
vdboor authored Apr 26, 2017
2 parents 03da447 + 59937f0 commit dfd3820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fluent_contents/static/fluent_contents/admin/cp_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ var cp_widgets = {};
selector = selector || 'textarea.cp-wysiwyg-widget';
var textareas = root.find(selector + ":not([id~=__prefix__])");

if( ! django_wysiwyg.is_loaded() )
if( typeof django_wysiwyg === "undefined" || ! django_wysiwyg.is_loaded() )
{
textareas.show();

Expand Down
2 changes: 1 addition & 1 deletion fluent_contents/static/fluent_contents/admin/cp_widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var cp_widgets = {};
selector = selector || 'textarea.cp-wysiwyg-widget';
var textareas = root.find(selector + ":not([id~=__prefix__])");

if( ! django_wysiwyg.is_loaded() )
if( typeof django_wysiwyg === "undefined" || ! django_wysiwyg.is_loaded() )
{
textareas.show();

Expand Down

0 comments on commit dfd3820

Please sign in to comment.