From 90d5a0e12b5d55efe4f6d212b71740b9fca11b5e Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 23 Sep 2013 23:03:05 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/result/table.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; } -- 2.43.2