From 42b7ab193057177f270f8fc0e5c38dfe587bf6d0 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 24 Mar 2012 16:38:34 +1300 Subject: [PATCH] BUGFIX: Prevent JS errors when widget area is loaded (note: doesn't actually fix it fully yet) --- code/widgets/WidgetAreaEditor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/widgets/WidgetAreaEditor.php b/code/widgets/WidgetAreaEditor.php index d53581a5..afd11c20 100644 --- a/code/widgets/WidgetAreaEditor.php +++ b/code/widgets/WidgetAreaEditor.php @@ -21,6 +21,8 @@ class WidgetAreaEditor extends FormField { 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");