Skip to content
Browse files

BUGFIX: Prevent JS errors when widget area is loaded (note: doesn't a…

…ctually fix it fully yet)
  • Loading branch information...
1 parent a39231f commit 42b7ab193057177f270f8fc0e5c38dfe587bf6d0 @sminnee sminnee committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 code/widgets/WidgetAreaEditor.php
View
2 code/widgets/WidgetAreaEditor.php
@@ -21,6 +21,8 @@ function __construct($name, $widgetClasses = array('Widget'), $maxWidgets = 0) {
function FieldHolder() {
Requirements::css(CMS_DIR . '/css/WidgetAreaEditor.css');
+ Requirements::javascript(THIRDPARTY_DIR . "/prototype/prototype.js");
+ Requirements::javascript(THIRDPARTY_DIR . '/behaviour/behaviour.js');
Requirements::javascript(CMS_DIR . '/javascript/WidgetAreaEditor.js');
return $this->renderWith("WidgetAreaEditor");

0 comments on commit 42b7ab1

Please sign in to comment.
Something went wrong with that request. Please try again.