Skip to content

Commit

Permalink
Radio buttons are no longer unselected when clicked when a radio butt…
Browse files Browse the repository at this point in the history
…on is selected. MTC-28812
  • Loading branch information
rmasco committed Apr 30, 2024
1 parent 0f7b855 commit 33e4fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mt-static/js/admin2023/tc/tableselect.js
Expand Up @@ -180,6 +180,7 @@ TC.TableSelect.prototype.click = function( evt ) {
element = elements[ i ];
if ( (element.type == "checkbox") || (element.type == "radio") ) {
if ( element.disabled ) return;
if( element.type === "radio" && element.checked ) return;
element.checked = !element.checked;
return this.select( element, parent );
}
Expand Down
1 change: 1 addition & 0 deletions mt-static/js/tc/tableselect.js
Expand Up @@ -180,6 +180,7 @@ TC.TableSelect.prototype.click = function( evt ) {
element = elements[ i ];
if ( (element.type == "checkbox") || (element.type == "radio") ) {
if ( element.disabled ) return;
if( element.type === "radio" && element.checked ) return;
element.checked = !element.checked;
evt.preventDefault();
return this.select( element, parent );
Expand Down

0 comments on commit 33e4fc6

Please sign in to comment.