From acf38470132de9ecd7cde4a41d03832d5b31e184 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 6 Sep 2006 20:34:54 +0000 Subject: [PATCH] going back to orig loc on home page git-svn-id: svn://svn.open-ils.org/ILS/trunk@6007 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/init.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/web/opac/common/js/init.js b/Open-ILS/web/opac/common/js/init.js index e7340512a4..96b2e72755 100644 --- a/Open-ILS/web/opac/common/js/init.js +++ b/Open-ILS/web/opac/common/js/init.js @@ -20,10 +20,10 @@ function init() { if( getLocation() == null && getOrigLocation() == null ) LOCATION = globalOrgTree.id(); - /* - if( getLocation() != null && getOrigLocation() == null ) - ORIGLOC = getLocation(); - */ + /* if they click on the home page and the origlocation is set + take the opac back to the origlocation */ + if( findCurrentPage() == HOME && getOrigLocation() != null ) + LOCATION = getOrigLocation(); if(getDepth() == null) DEPTH = findOrgDepth(getLocation()); -- 2.43.2