MINOR fixed JS bug around subsites tree dropdown

MINOR improved test coverage considerably (from r86478)
This commit is contained in:
Tom Rix 2010-03-01 21:47:31 +00:00
parent 298d9a71cc
commit 10a81655c7
2 changed files with 12 additions and 18 deletions

View File

@ -1,17 +0,0 @@
Behaviour.register({
'#CopyContentFromID_SubsiteID select' : {
initialize: function() {
var treeField = $('TreeDropdownField_Form_EditForm_CopyContentFromID');
if(!treeField) return false;
treeField.subsiteID = this.value;
},
onchange: function() {
var treeField = $('TreeDropdownField_Form_EditForm_CopyContentFromID');
if(!treeField) return false;
treeField.subsiteID = this.value;
treeField.refresh();
}
}
});

View File

@ -3,7 +3,7 @@
global $lang;
$lang['en_US']['SubsiteAdmin']['MENUTITLE'] = array(
'Subsites',
'Subsite',
100,
'Menu title'
);
@ -27,6 +27,17 @@ $lang['en_US']['RelatedPageLink']['SINGULARNAME'] = array(
);
$lang['en_US']['Subsite']['MANAGE_ASSETS'] = 'Manage assets for subsites';
$lang['en_US']['Subsite']['MANAGE_ASSETS_HELP'] = 'Ability to select the subsite to which an asset folder belongs. Requires "Access to Files & Images."';
$lang['en_US']['ModelAdmin']['LOADEDFOREDITING'] = 'Loaded \'%s\' for editing.';
$lang['en_US']['RelatedPageLink']['PLURALNAME'] = array(
'Related Page Links',
50,
'Pural name of the object, used in dropdowns and to generally identify a collection of this object in the interface'
);
$lang['en_US']['RelatedPageLink']['SINGULARNAME'] = array(
'Related Page Link',
50,
'Singular name of the object, used in dropdowns and to generally identify a single object in the interface'
);
$lang['en_US']['Subsite']['PLURALNAME'] = array(
'Subsits',
50,