Skip to content

Commit

Permalink
Fix recon dialog suggested types radio button
Browse files Browse the repository at this point in the history
  • Loading branch information
Redeem-Grimm-Satoshi committed Feb 24, 2024
1 parent 6ba044c commit 9f197a4
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ ReconStandardServicePanel.prototype._populatePanel = function() {
var radio = $('<input type="radio" name="type-choice">')
.val(typeID)
.attr("typeName", typeName)
.attr("id","type-choice"+ typeID)
.appendTo(td0)
.on('click',function() {
self._rewirePropertySuggests(this.value);
Expand All @@ -178,10 +179,15 @@ ReconStandardServicePanel.prototype._populatePanel = function() {
radio.prop('checked', true);
}

//add a label element for the type name and id
var label=$('<label></label>')
.attr("for","type-choice" + typeID) // associate the label with the radio button using the for attribute
.appendTo(td1);

if (typeName == typeID) {
$(td1).html(typeName);
label.html(typeName);
} else {
$(td1).html(
label.html(
typeName +
'<br/>' +
'<span class="type-id">' + typeID + '</span>');
Expand Down

0 comments on commit 9f197a4

Please sign in to comment.