Merge pull request #232 from drzax/urlsegmentfield

FIX: Load required CSS and translation files for SiteTreeURLSegmentField
This commit is contained in:
Will Rossiter 2012-11-07 21:01:12 -08:00
commit 625d5062a2

View File

@ -27,6 +27,8 @@ class SiteTreeURLSegmentField extends TextField {
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);
}