From: Dan Scott Date: Tue, 24 Sep 2013 03:03:05 +0000 (-0400) Subject: Mobile TPAC: Cleaner Refine/Return to hits behaviour X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=90d5a0e12b5d55efe4f6d212b71740b9fca11b5e;p=evergreen%2Fequinox.git Mobile TPAC: Cleaner Refine/Return to hits behaviour Have the Refine results / Return to results button be the target ID, so that clicking the link leaves the opposite action at the top of the page (giving users a quick exit path back to where they came from). Signed-off-by: Dan Scott Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Dan Wells --- diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index b0419c3313..18b55e3a81 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -371,13 +371,13 @@ function getFacety() { resultButton.setAttribute('class', 'results_header_btns result_block_visible'); facetSidebar.setAttribute('class', 'facet_sidebar_visible'); facetButton.setAttribute('class', 'result_block_hidden'); - window.location.hash = 'facet_sidebar'; + window.location.hash = 'return_to_hits'; } function getResulty() { resultBlock.setAttribute('class', 'result_block_visible'); resultButton.setAttribute('class', 'result_block_hidden'); facetSidebar.setAttribute('class', 'facet_sidebar_hidden'); facetButton.setAttribute('class', 'results_header_btns result_block_visible'); - window.location.hash = 'result_block'; + window.location.hash = 'refine_hits'; }