MODx.grid.RecentlyEditedResourcesByUser=function(A){A=A||{};Ext.applyIf(A,{title:_("recent_docs"),url:MODx.config.connectors_url+"security/user.php",saveUrl:MODx.config.connectors_url+"resource/index.php",baseParams:{action:"getRecentlyEditedResources",user:A.user},pageSize:10,fields:["id","pagetitle","description","editedon","deleted","published","menu"],columns:[{header:_("id"),dataIndex:"id",width:75},{header:_("pagetitle"),dataIndex:"pagetitle",width:150,editor:{xtype:"textfield",allowBlank:false}},{header:_("published"),dataIndex:"published",width:120,editor:{xtype:"combo-boolean",renderer:"boolean"}}],paging:true,autosave:true});MODx.grid.RecentlyEditedResourcesByUser.superclass.constructor.call(this,A);};Ext.extend(MODx.grid.RecentlyEditedResourcesByUser,MODx.grid.Grid,{preview:function(){window.open(MODx.config.base_url+"index.php?id="+this.menu.record.id);}});Ext.reg("modx-grid-user-recent-resource",MODx.grid.RecentlyEditedResourcesByUser);