Fix sortable-table on IDs with colons in them

This commit is contained in:
Vincent Fiduccia 2017-12-04 13:09:11 -07:00
parent 54d397f961
commit 996e9addf1
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
groupByKey=groupTableBy
groupByRef="namespace"
extraGroups=emptyNamespaces
pagingLabel="pagination.containerService"
pagingLabel="pagination.workload"
subSearchField="instances"
extraSearchFields=extraSearchFields
extraSearchSubFields=extraSearchSubFields

View File

@ -564,12 +564,12 @@ export default Component.extend(Sortable, StickyHeader, {
nodes.forEach((node) => {
let id = get(node,'id');
if ( id ) {
let input = $(`input[nodeid=${id}]`);
let input = $(`input[nodeid="${id}"]`);
if ( input && input.length ) {
// 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;
while ( tr && (first || tr.hasClass('sub-row') ) ) {