Skip to content

Commit 0b6c7b9

Browse files
committed
Merge branch 'master' of https://github.com/ImagingDataCommons/IDC-WebApp into idc-test
2 parents 1b33cf2 + 0f26826 commit 0b6c7b9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

static/js/tables.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ define(['cartutils','filterutils','tippy','jquery', 'base'], function(cartutils,
751751
$('#cases_tab').find('tbody').attr('id','cases_table');
752752
$('#cases_panel').find('.dataTables_controls').find('.dataTables_length').after(
753753
'<div class="dataTables_goto_page"><label>Page </label><input class="goto-page-number" '
754-
+ 'type="number"></div>'
754+
+ 'type="number"><button onclick="changePage(\'cases_tab_wrapper\')">Go</button></div>'
755755
);
756756
$('#cases_panel').find('.dataTables_controls').find('.dataTables_paginate').after(
757757
'<div class="dataTables_filter"><strong>Find by Case ID:</strong><input class="caseID_inp '
@@ -1113,8 +1113,15 @@ define(['cartutils','filterutils','tippy','jquery', 'base'], function(cartutils,
11131113
})
11141114

11151115
$('#studies_tab').children('tbody').attr('id','studies_table');
1116-
$('#studies_tab_wrapper').find('.dataTables_controls').find('.dataTables_length').after('<div class="dataTables_goto_page"><label>Page </label><input class="goto-page-number" type="number"><button onclick="changePage(\'studies_tab_wrapper\')">Go</button></div>');
1117-
$('#studies_tab_wrapper').find('.dataTables_controls').find('.dataTables_paginate').after('<div class="dataTables_filter"><strong>Find by Study Instance UID:</strong><input data-search-type="study" class="studyID_inp table-search-box" type="text-box" value="'+studyID+'" maxlength="256"><button class="clear"><i class="fa fa-solid fa-circle-xmark"></i></button></div>');
1116+
$('#studies_tab_wrapper').find('.dataTables_controls').find('.dataTables_length').after(
1117+
'<div class="dataTables_goto_page"><label>Page </label><input class="goto-page-number" type="number">'
1118+
+'<button onclick="changePage(\'studies_tab_wrapper\')">Go</button></div>'
1119+
);
1120+
$('#studies_tab_wrapper').find('.dataTables_controls').find('.dataTables_paginate').after(
1121+
'<div class="dataTables_filter"><strong>Find by Study Instance UID:</strong><input data-search-type="study"'
1122+
+ ' class="studyID_inp table-search-box" type="text-box" value="'+studyID+'" maxlength="256"><button '
1123+
+ 'class="clear"><i class="fa fa-solid fa-circle-xmark"></i></button></div>'
1124+
);
11181125
return updatePromise;
11191126
}
11201127

0 commit comments

Comments
 (0)