runEvt("common", "run");
//checkUserSkin();
- G.ui.common.now_searching.appendChild(text(findOrgUnit(getLocation()).name()));
+
+ var loc = findOrgLasso(getLasso());
+ if (!loc) loc = findOrgUnit(getLocation());
+
+ G.ui.common.now_searching.appendChild(text(loc.name()));
}
function windowUnload() { runEvt("common", "unload"); }
showCanvas();
runEvt("common", "locationChanged", id, findOrgDepth(id) );
+
+ var loc = findOrgLasso(getLasso());
+ if (!loc) loc = findOrgUnit(id);
+
removeChildren(G.ui.common.now_searching);
- G.ui.common.now_searching.appendChild(text(findOrgUnit(id).name()));
+ G.ui.common.now_searching.appendChild(text(loc.name()));
}
function setFontSize(size) {
displaying, links to the next/prev pages, etc. */
function resultSetHitInfo() {
-
- /* tell the user where the results are coming from */
- var baseorg = findOrgUnit(getLocation());
- var depth = getDepth();
- var mydepth = findOrgDepth(baseorg);
- if( findOrgDepth(baseorg) != depth ) {
- var tmporg = baseorg;
- while( mydepth > depth ) {
- mydepth--;
- tmporg = findOrgUnit(tmporg.parent_ou());
+ var lasso = getLasso();
+ if (!lasso) {
+ /* tell the user where the results are coming from */
+ var baseorg = findOrgUnit(getLocation());
+ var depth = getDepth();
+ var mydepth = findOrgDepth(baseorg);
+ if( findOrgDepth(baseorg) != depth ) {
+ var tmporg = baseorg;
+ while( mydepth > depth ) {
+ mydepth--;
+ tmporg = findOrgUnit(tmporg.parent_ou());
+ }
+ unHideMe($('including_results_for'));
+ $('including_results_location').appendChild(text(tmporg.name()));
}
- unHideMe($('including_results_for'));
- $('including_results_location').appendChild(text(tmporg.name()));
}