On 07/03/14 16:27, Dimitar Yordanov wrote: > Hi all, > > I was working on adding several check-boxes on the Repositories/Sync page > when it turned out that the check-boxes were somehow disabled. > > Channels -> Manage Software channels -> Some Custom Channael -> > Repositories -> Sync > https://sw.redhat.com/rhn/channels/manage/Sync.do?cid=102 > /WEB-INF/pages/channel/manage/syncrepos.jsp > > It seems it is related to the following Java Script: > > <script type="text/javascript"> > $(function() { > function toggleStatus() { > var status = $('fieldset#recurring-picker-${picker.name} > input[type="radio"]:checked').val(); > $('fieldset#recurring-picker-${picker.name} > .recurring-options[data-status!="' + status + > '"][data-picker-name="${picker.name}"]').find('select, > input').prop('disabled', true); > $('fieldset#recurring-picker-${picker.name} > .recurring-options[data-status="' + status + > '"][data-picker-name="${picker.name}"]').find('select, > input').prop('disabled', false); > } > $('fieldset#recurring-picker-${picker.name} > input[type="radio"]').click(function() { > toggleStatus(); > }); > toggleStatus(); > }); > </script>
That javascript controls that you can only edit the schedule for the selected type only. Where did you try to add a checkbox? May be the selector is too wide and matches a checkbox inside the recurring picker. Duncan _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel