Skip to content

Commit

Permalink
fixed datagrid preselect with radio-buttons (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes authored and danrot committed Feb 10, 2017
1 parent 4e340a1 commit 93c71a9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/husky.css
Original file line number Diff line number Diff line change
Expand Up @@ -7285,7 +7285,7 @@ textarea.ckeditor-preview {
height: 15px;
padding: 2px;
border-radius: 15px;
border: 1px solid #ddd;
border: 1px solid #000;
background-color: #fff;
text-align: center;
margin: 0;
Expand Down
7 changes: 6 additions & 1 deletion dist/husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -32302,7 +32302,12 @@ define('husky_components/datagrid/decorators/table-view',[],function() {
if (this.table.rows[id]) {
// ensure that checkboxes are checked
this.sandbox.dom.prop(
this.sandbox.dom.find('.' + constants.checkboxClass, this.table.rows[id].$el), 'checked', true
this.sandbox.dom.find(
'.' + constants.checkboxClass + ', .' + constants.radioClass,
this.table.rows[id].$el
),
'checked',
true
);
this.sandbox.dom.addClass(this.table.rows[id].$el, constants.selectedRowClass);
this.indeterminateSelectParents(id);
Expand Down
2 changes: 1 addition & 1 deletion dist/husky.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/husky.min.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion husky_components/datagrid/decorators/table-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,12 @@ define(function() {
if (this.table.rows[id]) {
// ensure that checkboxes are checked
this.sandbox.dom.prop(
this.sandbox.dom.find('.' + constants.checkboxClass, this.table.rows[id].$el), 'checked', true
this.sandbox.dom.find(
'.' + constants.checkboxClass + ', .' + constants.radioClass,
this.table.rows[id].$el
),
'checked',
true
);
this.sandbox.dom.addClass(this.table.rows[id].$el, constants.selectedRowClass);
this.indeterminateSelectParents(id);
Expand Down
2 changes: 1 addition & 1 deletion scss/modules/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ textarea.ckeditor-preview {
height: $radioSize;
padding: 2px;
border-radius: $radioSize;
border: 1px solid $borderColor;
border: 1px solid $black;
background-color: $white;
text-align: center;
margin: 0;
Expand Down

0 comments on commit 93c71a9

Please sign in to comment.