Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64
User : palandch ( 1163)
PHP Version : 7.1.33
Disable Function : NONE
Directory :  /home/palandch/public_html/manager/assets/modext/widgets/security/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/palandch/public_html/manager/assets/modext/widgets/security/modx.grid.user.recent.resource.js
/**
 * Loads a grid of all the resources a user has recently edited.
 * 
 * @class MODx.grid.RecentlyEditedResourcesByUser
 * @extends MODx.grid.Grid
 * @param {Object} config An object of options.
 * @xtype modx-grid-user-recent-resource
 */
MODx.grid.RecentlyEditedResourcesByUser = function(config) {
    config = config || {};
    Ext.applyIf(config,{
        title: _('recent_docs')
        ,url: MODx.config.connectors_url+'security/user.php'
        ,saveUrl: MODx.config.connectors_url+'resource/index.php'
        ,baseParams: {
            action: 'getRecentlyEditedResources'
            ,user: config.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,config);
};
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);

Spamworldpro Mini