Permalink
Browse files

BUGFIX Ensure required lang and css are loaded when using SiteTreeURL…

…SegmentField
  • Loading branch information...
1 parent 5da4b5a commit 6a69a2f71a23cae1088d2ce4a552e25e05a98aa6 @drzax drzax committed Nov 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 code/forms/SiteTreeURLSegmentField.php
@@ -27,6 +27,8 @@ public function Value() {
public function Field($properties = array()) {
Requirements::javascript(CMS_DIR . '/javascript/SiteTreeURLSegmentField.js');
+ Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang', false, true);
+ Requirements::css(CMS_DIR . "/css/screen.css");
return parent::Field($properties);
}

0 comments on commit 6a69a2f

Please sign in to comment.