From e5d038f7f0d1cad62c9ceb12a65c44516139ad27 Mon Sep 17 00:00:00 2001 From: Russell Michell Date: Fri, 9 Mar 2012 13:14:17 +1300 Subject: [PATCH] BUGFIX: #6853 Removed bottom border of the parent div wrapped around settings' options-sets when radio-buttons with a value of 'OnlyTheseUsers' is selected. --- javascript/CMSMain.EditForm.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/javascript/CMSMain.EditForm.js b/javascript/CMSMain.EditForm.js index e2f805e8..b3220152 100644 --- a/javascript/CMSMain.EditForm.js +++ b/javascript/CMSMain.EditForm.js @@ -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