From e9c8581ffcd4a43c4e812037a076967e0d968261 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 30 Sep 2011 21:25:47 -0500 Subject: Added selectable labels for radio buttons. The radio buttons in association facet and radio widget are now linked to their labels so that they can be selected by clicking the labels. Ticket #1782 --- install/ui/association.js | 19 +++++++++++++++---- install/ui/widget.js | 18 ++++++++++++++---- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/install/ui/association.js b/install/ui/association.js index f2ef11dac..ebb6e421f 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -908,7 +908,10 @@ IPA.association_facet = function (spec) { span.append(IPA.messages.association.show_results); span.append(' '); + var direct_id = that.entity.name+'-'+that.attribute_member+'-'+that.other_entity+'-direct-radio'; + that.direct_radio = $('', { + id: direct_id, type: 'radio', name: 'type', value: 'direct', @@ -919,11 +922,17 @@ IPA.association_facet = function (spec) { } }).appendTo(span); - span.append(' '); - span.append(IPA.messages.association.direct_enrollment); + $('