MODx.panel.ImportHTML=function(A){A=A||{};Ext.applyIf(A,{url:MODx.config.connectors_url+"system/import/html.php",baseParams:{action:"html"},id:"modx-panel-import-html",buttonAlign:"center",items:[{html:"<h2>"+_("import_site_html")+"</h2>",id:"modx-import-html-header",cls:"modx-page-header",border:false},{layout:"form",bodyStyle:"padding: 15px;",border:true,labelWidth:250,width:"100%",autoHeight:true,buttonAlign:"center",items:[{html:"<p>"+_("import_site_message")+"</p>",border:false},{xtype:"textfield",fieldLabel:_("import_element"),name:"import_element",id:"modx-import-element",labelSeparator:"",anchor:"100%",value:"body"},{xtype:"hidden",name:"import_context",id:"modx-import-context",value:"web",anchor:"100%"},{xtype:"textfield",fieldLabel:_("import_parent_document"),name:"import_parent",id:"modx-import-parent",labelSeparator:"",anchor:"100%",value:0},MODx.PanelSpacer,{xtype:"modx-tree-resource-simple",title:_("import_use_doc_tree"),url:MODx.config.connectors_url+"resource/index.php",id:"modx-ih-resource-tree",enableDrop:false,rootVisible:false,hideLabel:true,listeners:{click:{fn:this.setParent,scope:this}}}]}]});MODx.panel.ImportHTML.superclass.constructor.call(this,A);Ext.Ajax.timeout=0;};Ext.extend(MODx.panel.ImportHTML,MODx.FormPanel,{setParent:function(C,E){var B=0;var A="web";var D=C.attributes.id.split("_");A=D[0];B=D[1];Ext.getCmp("modx-import-parent").setValue(B);Ext.getCmp("modx-import-context").setValue(A);return false;}});Ext.reg("modx-panel-import-html",MODx.panel.ImportHTML);