mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
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:
parent
415390373e
commit
54d8e3ff6f
@ -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
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user