Mobile TPAC: Cleaner Refine/Return to hits behaviour
authorDan Scott <dscott@laurentian.ca>
Tue, 24 Sep 2013 03:03:05 +0000 (23:03 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 25 Sep 2013 22:45:13 +0000 (18:45 -0400)
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 <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/parts/result/table.tt2

index b0419c3..18b55e3 100644 (file)
@@ -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';
 }
 </script>