going back to orig loc on home page
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 20:34:54 +0000 (20:34 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 20:34:54 +0000 (20:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6007 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/init.js

index e734051..96b2e72 100644 (file)
@@ -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());