From 6e273d593e368ecd3b86f162d9441cb26318e014 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 3 Feb 2006 16:15:50 +0000 Subject: [PATCH] added useful wrapper method git-svn-id: svn://svn.open-ils.org/ILS/trunk@2955 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/depth_selector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/js/depth_selector.js b/Open-ILS/web/opac/skin/default/js/depth_selector.js index 2403de1d40..a2a690bdb2 100644 --- a/Open-ILS/web/opac/skin/default/js/depth_selector.js +++ b/Open-ILS/web/opac/skin/default/js/depth_selector.js @@ -5,7 +5,7 @@ var _ds; var _libselspan; var _libselslink; var _dselspan; -var _newlocation; +var _newlocation = null; function depthSelInit() { _ds = $('depth_selector'); @@ -85,8 +85,8 @@ function buildLocationSelector(newLoc) { } function getNewSearchDepth() { return newSearchDepth; } -function getNewSearchLocation() { return _newlocation; } -function depthSelGetNewLoc() { return _newlocation; } +function getNewSearchLocation() { return ( _newlocation == null ) ? LOCATION : _newlocation; } +function depthSelGetNewLoc() { getNewSearchLocation(); } function updateLoc(location, depth) { if( depth != null ) { -- 2.43.2