From 54d8e3ff6f7a64b3f8e743be4419df2066d48450 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 3 Nov 2008 14:54:57 +0000 Subject: [PATCH] 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 --- javascript/SitetreeAccess.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/javascript/SitetreeAccess.js b/javascript/SitetreeAccess.js index 664fa37a..6c75eadf 100644 --- a/javascript/SitetreeAccess.js +++ b/javascript/SitetreeAccess.js @@ -7,54 +7,54 @@ */ ViewersGroupHide = function() { - $('ViewersGroup').style.display = "none"; + $('ViewerGroups').style.display = "none"; } EditorsGroupHide = function() { - $('EditorsGroup').style.display = "none"; + $('EditorGroups').style.display = "none"; } Behaviour.register({ - '#Form_EditForm_Viewers_OnlyTheseUsers': { + '#Form_EditForm_CanViewType_OnlyTheseUsers': { onclick: function() { - $('ViewersGroup').style.display = "block"; + $('ViewerGroups').style.display = "block"; }, initialize: function() { - if($('Form_EditForm_Viewers_OnlyTheseUsers')) { - if($('Form_EditForm_Viewers_OnlyTheseUsers').checked) - $('ViewersGroup').style.display = "block"; + if($('Form_EditForm_CanViewType_OnlyTheseUsers')) { + if($('Form_EditForm_CanViewType_OnlyTheseUsers').checked) + $('ViewerGroups').style.display = "block"; else - $('ViewersGroup').style.display = "none"; + $('ViewerGroups').style.display = "none"; } } }, - '#Form_EditForm_Viewers_Anyone': { + '#Form_EditForm_CanViewType_Anyone': { onclick: ViewersGroupHide }, - '#Form_EditForm_Viewers_LoggedInUsers': { + '#Form_EditForm_CanViewType_LoggedInUsers': { onclick: ViewersGroupHide }, - '#Form_EditForm_Editors_OnlyTheseUsers': { + '#Form_EditForm_CanEditType_OnlyTheseUsers': { onclick: function() { - $('EditorsGroup').style.display = "block"; + $('EditorGroups').style.display = "block"; }, initialize: function() { - if($('Form_EditForm_Editors_OnlyTheseUsers')) { - if($('Form_EditForm_Editors_OnlyTheseUsers').checked) - $('EditorsGroup').style.display = "block"; + if($('Form_EditForm_CanEditType_OnlyTheseUsers')) { + if($('Form_EditForm_CanEditType_OnlyTheseUsers').checked) + $('EditorGroups').style.display = "block"; else - $('EditorsGroup').style.display = "none"; + $('EditorGroups').style.display = "none"; } } }, - '#Form_EditForm_Editors_LoggedInUsers': { + '#Form_EditForm_CanEditType_LoggedInUsers': { onclick: EditorsGroupHide } }); \ No newline at end of file