Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadToolTipControllerClass=function(){ this._tooltipToShow=null; this._activeToolTip=null; this._registerGlobalBodyEventHandlers(); }; Telerik.Web.UI.RadToolTipControllerClass.prototype={_registerGlobalBodyEventHandlers:function(){ var _1=Function.createDelegate(null,function(e){ if(e.keyCode==27){ Telerik.Web.UI.RadToolTipController._hideCurrentToolTipUnconditionally(); } }); $addHandler(document.body,"keydown",_1); var _3=Function.createDelegate(null,function(e){ Telerik.Web.UI.RadToolTipController._hideOnBodyClick(e); }); $addHandler(document.body,"click",_3); Sys.Application.add_unload(function(){ $removeHandler(document.body,"keydown",_1); $removeHandler(document.body,"click",_3); }); },_hideOnBodyClick:function(e){ var _6=true; if(this._activeToolTip!=null){ var _7=this._activeToolTip; if(_7._isMouseOverElement(e,_7._tableElement)){ return; } _6=this._activeToolTip.hide(true); } if(_6){ this._activeToolTip=null; } },_cancelLastShowRequest:function(){ if(this._tooltipToShow){ var _8=this._tooltipToShow; this._tooltipToShow=null; _8.cancelShowDelay(); } },_hideCurrentToolTipUnconditionally:function(){ this._cancelLastShowRequest(); if(this._activeToolTip!=null){ this._activeToolTip.hide(); } this._activeToolTip=null; },requestShow:function(_9){ this._cancelLastShowRequest(); this._tooltipToShow=_9; },cancelSpecificShowRequest:function(_a){ if(this._tooltipToShow==_a){ this._cancelLastShowRequest(); } },showTootlip:function(_b){ if(!_b||_b.isVisible()){ return; } this._cancelLastShowRequest(); this.set_activeToolTip(_b); _b.show(); },notifyToolTipClosed:function(_c){ if(this._activeToolTip==_c){ this._activeToolTip=null; } },set_activeToolTip:function(_d){ if(_d!=this._activeToolTip){ this._hideCurrentToolTipUnconditionally(); } this._activeToolTip=_d; },get_activeToolTip:function(){ return this._activeToolTip; },getInstance:function(){ return this; }}; $telerikCommon.makeCompatible(Telerik.Web.UI.RadToolTipControllerClass); Telerik.Web.UI.RadToolTipControllerClass.registerClass("Telerik.Web.UI.RadToolTipControllerClass",null); if(!Telerik.Web.UI.RadToolTipController){ Telerik.Web.UI.RadToolTipController=new Telerik.Web.UI.RadToolTipControllerClass(); } if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();