From ea8030d95547db2ad6b9319827afe136bcff75d4 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 12 Mar 2009 02:20:45 +0000 Subject: [PATCH] BUGFIX CalendarDateField requires prototype to be included at all times in order for the calendar javascript to work - so ensure that it is included (this broke on the front end if prototype wasn't included via Requirements). git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72957 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/CalendarDateField.php | 1 + 1 file changed, 1 insertion(+) diff --git a/forms/CalendarDateField.php b/forms/CalendarDateField.php index 261ef4768..258415fc1 100755 --- a/forms/CalendarDateField.php +++ b/forms/CalendarDateField.php @@ -16,6 +16,7 @@ HTML; } function Field() { + Requirements::javascript(THIRDPARTY_DIR . '/prototype.js'); Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js"); Requirements::javascript(THIRDPARTY_DIR . "/calendar/calendar.js"); Requirements::javascript(THIRDPARTY_DIR . "/calendar/lang/calendar-en.js");