this.labelid = _labelid; this.setAttribute('textLabel',canvas.getLabelName(this.labelid)); if ($debug) Debug.write("this.textLabel :: ",this.textLabel,this.labelid); if (!this.selected){ this._bg.setAttribute("visibility","visible"); } if (!this.selected){ this._bg.setAttribute("visibility","hidden"); } this.selected = false; this._bg.setAttribute("visibility","hidden"); this._ctext.setAttribute("fgcolor",0x000000); this._bg.setAttribute("visibility","visible"); this._ctext.setAttribute("fgcolor",0xFFFFFF); this.selected=true; parent.parent.setSubItem(this); _mainScrollBar.setAttribute("visibility","hidden"); //Clear reference to search to make sure it will re-initialize canvas.userSettingsSearchRef = null; _mainScrollBar.setAttribute("visibility","visible"); if (this.refObjItem != null) { this.refObjItem.deselect(); } this.refObjItem = objRef; this._content.hideAll(); this._content[objRef.name].setAttribute("visibility","visible"); this.refObjItem.select(); for (var eg in this.subviews) { this.subviews[eg].deselect(); } if (canvas.userSettingsModuleOpt == "editUserProfile") { this._editUserProfile.onclick.sendEvent(null); } else if (canvas.userSettingsModuleOpt == "userProfile") { this._userProfile.onclick.sendEvent(null); } else if (canvas.userSettingsModuleOpt == "userSearch") { this._searchUserProfile.onclick.sendEvent(null); parent._content._searchUserProfile.searchByUpdate(); } else { this._editUserContacts.onclick.sendEvent(null); } for (var eg in this.subviews) { this.subviews[eg].setAttribute("visibility","hidden"); }