mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #66 from silverstripe-scienceninjas/trac-6853
Trac 6853
This commit is contained in:
commit
8cfe784bf8
@ -189,7 +189,15 @@
|
||||
else if(this.attr('id') == 'CanCreateTopLevelType') dropdown = $('#CreateTopLevelGroups');
|
||||
|
||||
this.find('.optionset :input').bind('change', function(e) {
|
||||
dropdown[e.target.value == 'OnlyTheseUsers' ? 'show' : 'hide']();
|
||||
var wrapper = $(this).closest('.middleColumn').parent('div');
|
||||
if(e.target.value == 'OnlyTheseUsers') {
|
||||
wrapper.addClass('remove-splitter');
|
||||
dropdown['show']();
|
||||
}
|
||||
else {
|
||||
wrapper.removeClass('remove-splitter');
|
||||
dropdown['hide']();
|
||||
}
|
||||
});
|
||||
|
||||
// initial state
|
||||
|
Loading…
Reference in New Issue
Block a user