BUGFIX Fixed SiteTreeAccess.js DOM IDs to field changes made in r65150

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65151 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-03 14:54:57 +00:00
parent 415390373e
commit 54d8e3ff6f

View File

@ -7,54 +7,54 @@
*/ */
ViewersGroupHide = function() { ViewersGroupHide = function() {
$('ViewersGroup').style.display = "none"; $('ViewerGroups').style.display = "none";
} }
EditorsGroupHide = function() { EditorsGroupHide = function() {
$('EditorsGroup').style.display = "none"; $('EditorGroups').style.display = "none";
} }
Behaviour.register({ Behaviour.register({
'#Form_EditForm_Viewers_OnlyTheseUsers': { '#Form_EditForm_CanViewType_OnlyTheseUsers': {
onclick: function() { onclick: function() {
$('ViewersGroup').style.display = "block"; $('ViewerGroups').style.display = "block";
}, },
initialize: function() { initialize: function() {
if($('Form_EditForm_Viewers_OnlyTheseUsers')) { if($('Form_EditForm_CanViewType_OnlyTheseUsers')) {
if($('Form_EditForm_Viewers_OnlyTheseUsers').checked) if($('Form_EditForm_CanViewType_OnlyTheseUsers').checked)
$('ViewersGroup').style.display = "block"; $('ViewerGroups').style.display = "block";
else else
$('ViewersGroup').style.display = "none"; $('ViewerGroups').style.display = "none";
} }
} }
}, },
'#Form_EditForm_Viewers_Anyone': { '#Form_EditForm_CanViewType_Anyone': {
onclick: ViewersGroupHide onclick: ViewersGroupHide
}, },
'#Form_EditForm_Viewers_LoggedInUsers': { '#Form_EditForm_CanViewType_LoggedInUsers': {
onclick: ViewersGroupHide onclick: ViewersGroupHide
}, },
'#Form_EditForm_Editors_OnlyTheseUsers': { '#Form_EditForm_CanEditType_OnlyTheseUsers': {
onclick: function() { onclick: function() {
$('EditorsGroup').style.display = "block"; $('EditorGroups').style.display = "block";
}, },
initialize: function() { initialize: function() {
if($('Form_EditForm_Editors_OnlyTheseUsers')) { if($('Form_EditForm_CanEditType_OnlyTheseUsers')) {
if($('Form_EditForm_Editors_OnlyTheseUsers').checked) if($('Form_EditForm_CanEditType_OnlyTheseUsers').checked)
$('EditorsGroup').style.display = "block"; $('EditorGroups').style.display = "block";
else else
$('EditorsGroup').style.display = "none"; $('EditorGroups').style.display = "none";
} }
} }
}, },
'#Form_EditForm_Editors_LoggedInUsers': { '#Form_EditForm_CanEditType_LoggedInUsers': {
onclick: EditorsGroupHide onclick: EditorsGroupHide
} }
}); });