Created
April 21, 2015 13:35
-
-
Save vgrish/c522e5fde9b46be791ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.onReady(function() { | |
MODx.load({xtype: 'mlmscript-user-info-panel'}); | |
}); | |
mlmscript.panel.Info = function(config) { | |
config = config || {}; | |
Ext.apply(config,{ | |
id: 'mlmscript-user-profile-page', | |
renderTo: 'up2-extend-mlmscript', | |
bodyStyle: 'padding: 10px 0px 10px 0px;', | |
style: 'padding: 0 25px 15px 15px;', | |
layout: 'auto', | |
autoWidth:true, | |
items: [{ | |
border: false, | |
baseCls: 'panel-desc', | |
html: '<p>' + _('mlm_user_profile_introtext') + '</p>' | |
},{ | |
xtype : 'panel', | |
width : '100%', | |
layout : 'fit', | |
items :[{ | |
xtype: 'mlmscript-grid-users', | |
id: 'mlmscript-grid-users', | |
baseParams: { | |
action: 'mgr/users/getlist', | |
user_id: mlmscript.config.user | |
} | |
}] // | |
}] | |
,listeners: { | |
afterrender: {fn:function() { | |
var ff = Ext.getCmp('mlmscript-users-search'); | |
if(ff) {ff.hide();} | |
var fs = Ext.getCmp('tbar-mlmscript-combo-status-users'); | |
if(fs) {fs.hide();} | |
var fc = Ext.getCmp('mlmscript-users-clear'); | |
if(fc) {fc.hide();} | |
var fl = Ext.getCmp('mlmscript-combo-level-users'); | |
if(fl) {fl.hide();} | |
}, scope:this} | |
} | |
}); | |
mlmscript.panel.Info.superclass.constructor.call(this,config); | |
}; | |
Ext.extend(mlmscript.panel.Info,MODx.Panel); | |
Ext.reg('mlmscript-user-info-panel',mlmscript.panel.Info,{ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment