X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e3e54264e8bc767e1ec773cff4e5bdf4c4934a36..9a46fb0033514db6dd5e8ab4ccf793f78458a734:/apps/workbench/app/assets/javascripts/infinite_scroll.js diff --git a/apps/workbench/app/assets/javascripts/infinite_scroll.js b/apps/workbench/app/assets/javascripts/infinite_scroll.js index f07cd0978f..047257644f 100644 --- a/apps/workbench/app/assets/javascripts/infinite_scroll.js +++ b/apps/workbench/app/assets/javascripts/infinite_scroll.js @@ -201,7 +201,7 @@ $(document). if( hasHTML5History() && history.state !== undefined && history.state !== null && history.state.order !== undefined && history.state.order[tabId] !== undefined ) { // we will use the list of one or more table columns associated with this header to find the right element // see sortable_columns as it is passed to render_pane in the various tab .erbs (e.g. _show_jobs_and_pipelines.html.erb) - var strippedColumns = history.state.order[tabId].replace(/\s|asc|desc/g,''); + var strippedColumns = history.state.order[tabId].replace(/\s|\basc\b|\bdesc\b/g,''); var sortDirection = history.state.order[tabId].split(" ")[1].replace(/,/,''); $columnHeader = $(this).closest('table').find('[data-sort-order="'+ strippedColumns +'"]'); setColumnSort( $(this), $columnHeader, sortDirection );