mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Added missing Requirements to TreeDropdownField->Field() and TreeMultiSelect->Field()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98852 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d5fe2733e0
commit
b700e2ccff
@ -97,6 +97,8 @@ class TreeDropdownField extends FormField {
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/prototype/prototype.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/tree/tree.js');
|
||||
// needed for errorMessage()
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/LeftAndMain.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/TreeSelectorField.js');
|
||||
|
||||
Requirements::css(SAPPHIRE_DIR . '/javascript/tree/tree.css');
|
||||
|
@ -42,8 +42,18 @@ class TreeMultiselectField extends TreeDropdownField {
|
||||
function Field() {
|
||||
$value = '';
|
||||
$itemList = '';
|
||||
|
||||
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
|
||||
Requirements::javascript(SAPPHIRE_DIR . "/javascript/TreeSelectorField.js");
|
||||
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/prototype/prototype.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/tree/tree.js');
|
||||
// needed for errorMessage()
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/LeftAndMain.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/TreeSelectorField.js');
|
||||
|
||||
Requirements::css(SAPPHIRE_DIR . '/javascript/tree/tree.css');
|
||||
Requirements::css(SAPPHIRE_DIR . '/css/TreeDropdownField.css');
|
||||
|
||||
$items = $this->getItems();
|
||||
if($items) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user