MODx.grid.ContextSettings=function(A){A=A||{};Ext.applyIf(A,{title:_("context_settings"),id:"modx-grid-context-settings",url:MODx.config.connectors_url+"context/setting.php",baseParams:{action:"getList",context_key:A.context_key},saveParams:{context_key:A.context_key},fk:A.context_key,autosave:false,tbar:[{text:_("create_new"),scope:this,handler:{xtype:"modx-window-setting-create",url:MODx.config.connectors_url+"context/setting.php",fk:A.context_key}}]});MODx.grid.ContextSettings.superclass.constructor.call(this,A);};Ext.extend(MODx.grid.ContextSettings,MODx.grid.SettingsGrid);Ext.reg("modx-grid-context-settings",MODx.grid.ContextSettings);MODx.window.UpdateContextSetting=function(A){A=A||{};var B=A.record;Ext.applyIf(A,{title:_("setting_update"),height:200,width:550,url:MODx.config.connectors_url+"context/setting.php",action:"update",bodyStyle:"padding: 0",fields:[{xtype:"hidden",name:"context_key",id:"modx-ucs-context_key",value:B.context_key},{xtype:"statictextfield",fieldLabel:_("key"),name:"key",id:"modx-ucs-key",allowBlank:false,value:B.key,submitValue:B.key,anchor:"90%"},{xtype:B.xtype||"textfield",fieldLabel:_("value"),name:"value",id:"modx-ucs-value",allowBlank:false,value:B.value,anchor:"90%"}]});MODx.window.UpdateContextSetting.superclass.constructor.call(this,A);};Ext.extend(MODx.window.UpdateContextSetting,MODx.Window);Ext.reg("modx-window-context-setting-update",MODx.window.UpdateContextSetting);