BUGFIX Ensure required lang and css are loaded when using SiteTreeURLSegmentField

This commit is contained in:
Simon Elvery 2012-11-08 12:53:43 +10:00
parent 5da4b5a0ce
commit 6a69a2f71a

View File

@ -27,6 +27,8 @@ class SiteTreeURLSegmentField extends TextField {
public function Field($properties = array()) { public function Field($properties = array()) {
Requirements::javascript(CMS_DIR . '/javascript/SiteTreeURLSegmentField.js'); 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); return parent::Field($properties);
} }