mirror of https://github.com/rancher/ui.git
Fix sortable-table on IDs with colons in them
This commit is contained in:
parent
54d397f961
commit
996e9addf1
|
|
@ -20,7 +20,7 @@
|
||||||
groupByKey=groupTableBy
|
groupByKey=groupTableBy
|
||||||
groupByRef="namespace"
|
groupByRef="namespace"
|
||||||
extraGroups=emptyNamespaces
|
extraGroups=emptyNamespaces
|
||||||
pagingLabel="pagination.containerService"
|
pagingLabel="pagination.workload"
|
||||||
subSearchField="instances"
|
subSearchField="instances"
|
||||||
extraSearchFields=extraSearchFields
|
extraSearchFields=extraSearchFields
|
||||||
extraSearchSubFields=extraSearchSubFields
|
extraSearchSubFields=extraSearchSubFields
|
||||||
|
|
|
||||||
|
|
@ -564,12 +564,12 @@ export default Component.extend(Sortable, StickyHeader, {
|
||||||
nodes.forEach((node) => {
|
nodes.forEach((node) => {
|
||||||
let id = get(node,'id');
|
let id = get(node,'id');
|
||||||
if ( id ) {
|
if ( id ) {
|
||||||
let input = $(`input[nodeid=${id}]`);
|
let input = $(`input[nodeid="${id}"]`);
|
||||||
if ( input && input.length ) {
|
if ( input && input.length ) {
|
||||||
// can't reuse the input ref here because the table has rerenderd and the ref is no longer good
|
// can't reuse the input ref here because the table has rerenderd and the ref is no longer good
|
||||||
$(`input[nodeid=${id}]`).prop('checked', on);
|
$(`input[nodeid="${id}"]`).prop('checked', on);
|
||||||
|
|
||||||
let tr = $(`input[nodeid =${id}]`).closest('tr');
|
let tr = $(`input[nodeid="${id}"]`).closest('tr');
|
||||||
let first = true;
|
let first = true;
|
||||||
|
|
||||||
while ( tr && (first || tr.hasClass('sub-row') ) ) {
|
while ( tr && (first || tr.hasClass('sub-row') ) ) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue