GO.customcss.MainPanel=function(a){a=a||{};a.items=[{xtype:"textarea",fieldLabel:"CSS",name:"css",anchor:"100% 50%",plugins:new GO.plugins.InsertAtCursorTextareaPlugin()},{xtype:"textarea",fieldLabel:"Javascript",name:"javascript",anchor:"100% 50%"}];a.labelAlign="top";a.waitMsgTarget=true;a.border=false;a.tbar=new Ext.Toolbar({cls:"go-head-tb",items:[{iconCls:"btn-save",text:GO.lang.cmdSave,handler:function(){this.form.submit({url:GO.settings.modules.customcss.url+"action.php",waitMsg:GO.lang.waitMsgSave,callback:function(){}})},scope:this},{iconCls:"btn-files",text:GO.customcss.lang.selectFile,handler:function(){GO.files.createSelectFileBrowser();GO.selectFileBrowser.setFileClickHandler(function(b){this.form.findField("css").insertAtCursor(GO.settings.modules.files.url+"download.php?id="+b.data.id);GO.selectFileBrowserWindow.hide()},this);GO.selectFileBrowser.setFilesFilter(this.filesFilter);GO.selectFileBrowser.setRootID(GO.customcss.filesFolderId,GO.customcss.filesFolderId);GO.selectFileBrowserWindow.show()},scope:this}]});GO.customcss.MainPanel.superclass.constructor.call(this,a)};Ext.extend(GO.customcss.MainPanel,Ext.form.FormPanel,{afterRender:function(){GO.customcss.MainPanel.superclass.afterRender.call(this);this.form.load({url:GO.settings.modules.customcss.url+"json.php",waitMsg:GO.lang.waitMsgLoad})}});GO.moduleManager.addModule("customcss",GO.customcss.MainPanel,{title:GO.customcss.lang.customcss,iconCls:"go-tab-icon-customcss",admin:true});