Merge pull request #66 from silverstripe-scienceninjas/trac-6853

Trac 6853
This commit is contained in:
Sam Minnée 2012-03-08 17:51:37 -08:00
commit 8cfe784bf8

View File

@ -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