1Type.registerNamespace("Telerik.Web.UI"); 2(function(){var b=$telerik.$; 3var a=Telerik.Web.UI; 4a.DialogDefinition=function(){this.Width="600px"; 5this.Height="400px"; 6this.Title=""; 7this.Behaviors=36; 8this.Modal=true; 9this.VisibleStatusbar=false; 10this.VisibleTitlebar=true; 11this.ClientCallbackFunction=""; 12}; 13a.DialogDefinition.registerClass("Telerik.Web.UI.DialogDefinition",null); 14a.DialogDefinitionsDictionary=function(d){for(var g in d){var e=d[g]; 15var f=new a.DialogDefinition(); 16for(var c in e){f[c]=e[c]; 17}this[g]=f; 18}}; 19a.DialogDefinitionsDictionary.registerClass("Telerik.Web.UI.DialogDefinitionsDictionary",null); 20a.DialogOpenEventArgs=function(d,c){a.DialogOpenEventArgs.initializeBase(this); 21this._dialogName=d; 22if(c){this._parameters=c; 23}else{this._parameters={}; 24}}; 25a.DialogOpenEventArgs.prototype={get_dialogName:function(){return this._dialogName; 26},set_parameters:function(c){this._parameters=c; 27},get_parameters:function(){return this._parameters; 28}}; 29a.DialogOpenEventArgs.registerClass("Telerik.Web.UI.DialogOpenEventArgs",Sys.EventArgs); 30a.RadDialogOpener=function(c){a.RadDialogOpener.initializeBase(this,[c]); 31this._dialogDefinitions={}; 32this._handlerChecked=false; 33this._dialogParametersProviderTypeName=""; 34this._dialogUniqueID=""; 35this._dialogContainers={}; 36}; 37a.RadDialogOpener.prototype={initialize:function(){a.RadDialogOpener.callBaseMethod(this,"initialize"); 38this._dialogDefinitions=new a.DialogDefinitionsDictionary(this.get_dialogDefinitions()); 39},get_dialogDefinitions:function(){return this._dialogDefinitions; 40},openUrl:function(j,k,d,p,o,g,i,m,n,f,e,h){h="EXTERNAL_URL"+(h||"default"); 41var c=this._getDialogContainer(h); 42c.set_width(d+"px"); 43c.set_height(p+"px"); 44c.set_behaviors(n||a.WindowBehaviors.Default); 45c.set_modal(m==true); 46c.set_visibleStatusbar(f==true); 47c.set_visibleTitlebar(e==true); 48c.set_title(i?i:""); 49var l=new a.DialogOpenEventArgs(j,k); 50this.raiseEvent("open",l); 51c.ClientParameters=k; 52c.set_clientCallBackFunction(o); 53c.setUrl(j); 54c.show(); 55c.center(); 56window.setTimeout(function(){c.setActive(true); 57},100); 58},open:function(d,i,j){if(!this._handlerChecked){this._checkDialogHandler(this.get_handlerUrl()); 59}var h=this._getDialogDefinition(d); 60var k=new a.DialogOpenEventArgs(d,i); 61this.raiseEvent("open",k); 62var i=k.get_parameters(); 63if(!j){j=h.ClientCallbackFunction; 64}if(this.get_useClassicDialogs()){var c=$create(a.ClassicDialog,{dialogOpener:this}); 65c.ClientParameters=i; 66this._applyParameters(d,c); 67if(j){c.set_clientCallBackFunction(j); 68}window.__getCurrentRadEditorRadWindowReference=function(){return c; 69}; 70var e="width="+parseInt(h.Width)+",height="+parseInt(h.Height); 71e+=",resizable=0,scrollbars=0,status=0,toolbar=0,menubar=0,directories=0"; 72var g=c.open(e,d); 73g.radWindow=c; 74return g; 75}else{var c=this._getDialogContainer(d); 76var f=h.Height; 77c.set_height(f); 78c.set_width(h.Width); 79c.set_behaviors(h.Behaviors); 80c.set_modal(h.Modal); 81c.set_visibleStatusbar(h.VisibleStatusbar); 82c.set_visibleTitlebar(h.VisibleTitlebar); 83if(h.ReloadOnShow!=null){c.set_reloadOnShow(h.ReloadOnShow); 84}c.ClientParameters=i; 85this._applyParameters(d,c); 86if(j){c.set_clientCallBackFunction(j); 87}c.show(); 88c.set_height(f); 89c.center(); 90window.setTimeout(function(){c.setActive(true); 91},100); 92}},_applyParameters:function(g,f){var k=this._getDialogParameters(g); 93if(!k){return; 94}var n="&dp="+encodeURIComponent(k); 95var d=this._getBaseDialogUrl(g); 96var m=d.length+n.length; 97var h=this._dialogParametersProviderTypeName==""; 98var l=h&&m<=this.get_dialogUrlLengthLimit(); 99if(l){var i=f.get_navigateUrl(); 100var j=d+n; 101if(i!=j){f.setUrl(j); 102}else{var e=f.get_contentFrame(); 103if(e&&e.contentWindow&&e.contentWindow.$find){var c=e.contentWindow.initDialog; 104if(c){e.contentWindow.setTimeout(function(){c(); 105},1); 106}}}}else{f.setUrl(d); 107f.DialogParameters=k; 108}},_closeContainerDelegate:function(c){this.raiseEvent("close",c); 109},_getDialogContainer:function(e){if(typeof(this._dialogContainers[e])=="undefined"){var d=$find(this.get_id()+e); 110if(null!=d){d.dispose(); 111}this._dialogContainers[e]=this.get_container().clone(this.get_id()+e); 112var c=this; 113this._dialogContainers[e].get_dialogOpener=function(){return c; 114}; 115this._dialogContainers[e].add_close(Function.createDelegate(this,this._closeContainerDelegate)); 116}return this._dialogContainers[e]; 117},_getBaseDialogUrl:function(d){var c=this.get_handlerUrl().indexOf("?")<0?"?":"&"; 118return this.get_handlerUrl()+c+"DialogName="+d+"&Skin="+this.get_skin()+"&Title="+encodeURIComponent(this._getDialogDefinition(d)["Title"])+"&doid="+this._dialogUniqueID+"&dpptn="+encodeURIComponent(this._dialogParametersProviderTypeName)+this.get_additionalQueryString(); 119},_getDialogDefinition:function(d){var c=this.get_dialogDefinitions()[d]; 120if(c){return c; 121}else{throw Error.argumentNull("dialogName",String.format("Dialog Parameters for the {0} dialog do not exist",d)); 122}},_getDialogParameters:function(c){return this._getDialogDefinition(c)["SerializedParameters"]; 123},_checkDialogHandler:function(e){var d=e.indexOf("?")<0?"?":"&"; 124var c=e+d+"checkHandler=true";
125var f=new Sys.Net.WebRequest(); 126f.set_url(c); 127f.add_completed(Function.createDelegate(this,this._checkRequestCompleted)); 128var g=new Sys.Net.XMLHttpExecutor(); 129f.set_executor(g); 130g.executeRequest(); 131},_checkRequestCompleted:function(f,e){if(f.get_responseAvailable()){var c=f.get_webRequest(); 132var d=f.get_responseData(); 133if(d&&d.indexOf("HandlerCheckOK")>0){this._handlerChecked=true; 134return; 135}}window.alert("Web.config registration missing!\n The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction"); 136}}; 137b.registerControlProperties(a.RadDialogOpener,{additionalQueryString:"",handlerUrl:"",container:null,dialogUrlLengthLimit:2000,useClassicDialogs:false,skin:""}); 138b.registerControlEvents(a.RadDialogOpener,["open","close"]); 139a.RadDialogOpener.registerClass("Telerik.Web.UI.RadDialogOpener",a.RadWebControl); 140a.ClassicDialog=function(d,c){a.ClassicDialog.initializeBase(this); 141this.BrowserWindow=window; 142this._dialogOpener=null; 143this._clientCallBackFunction=null; 144this._window=null; 145this._url=""; 146this._closeEvent=[]; 147}; 148a.ClassicDialog.prototype={close:function(c){this.raise_close(); 149if(null!=c&&!(c instanceof Sys.UI.DomEvent)){var e=this.get_clientCallBackFunction(); 150if(e){e(this,c); 151}}var d=this.get_contentFrame(); 152d.setTimeout(function(){d.close(); 153d.parent.focus(); 154},100); 155},open:function(c,d){this._window=window.open(this.get_navigateUrl(),d,c); 156this._window.focus(); 157return this._window; 158},setUrl:function(c){this._url=c; 159},get_navigateUrl:function(){return this._url; 160},get_contentFrame:function(){return this._window; 161},set_title:function(c){if(this._window&&this._window.document){this._window.document.title=c; 162}},dispose:function(){this._window=null; 163this._clientCallBackFunction=null; 164this._dialogOpener=null; 165this._closeEvent=[]; 166a.ClassicDialog.callBaseMethod(this,"dispose"); 167},get_dialogOpener:function(){return this._dialogOpener; 168},set_dialogOpener:function(c){this._dialogOpener=c; 169},get_clientCallBackFunction:function(){return this._clientCallBackFunction; 170},set_clientCallBackFunction:function(c){this._clientCallBackFunction=c; 171},add_close:function(c){Array.add(this._closeEvent,c); 172},remove_close:function(c){Array.remove(this._closeEvent,c); 173},raise_close:function(e){var d=this._closeEvent; 174if(!d||(d.length===0)){return; 175}d=Array.clone(d); 176if(!d._handler){d._handler=function(h,f){for(var g=0,j=d.length; 177g<j; 178g++){d[g](h,f); 179}}; 180}var c=d._handler; 181if(c){if(!e){e=Sys.EventArgs.Empty; 182}c(this,e); 183}}}; 184a.ClassicDialog.registerClass("Telerik.Web.UI.ClassicDialog",Sys.Component); 185})(); 186 187if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.