MODx.window.PackageUpdate=function(A){A=A||{};Ext.applyIf(A,{title:_("package_update"),url:MODx.config.connectors_url+"workspace/packages.php",action:"download",height:400,width:400,id:"modx-window-package-update",saveBtnText:"Update",fields:this.setupOptions(A.packages,A.record)});MODx.window.PackageUpdate.superclass.constructor.call(this,A);this.on("hide",function(){this.destroy();},this);};Ext.extend(MODx.window.PackageUpdate,MODx.Window,{setupOptions:function(E,D){var A=[{html:_("package_update_to_version"),border:false},MODx.PanelSpacer,{xtype:"hidden",name:"provider",value:Ext.isDefined(D.provider)?D.provider:MODx.provider}];for(var C=0;C<E.length;C=C+1){var B=E[C];A.push({xtype:"radio",name:"info",boxLabel:B.signature,description:B.description,inputValue:B.info,labelSeparator:"",checked:C==0});}return A;}});Ext.reg("modx-window-package-update",MODx.window.PackageUpdate);