xtype : 'Nest',
background : true,
title : _this._strings['f49559cda3fb906fbd7736f8b8a0e37d'] /* Email Template */,
+ listeners : {
+ activate : function (_self)
+ {
+ if(!document.getElementsByClassName('email-south-pane')) {
+ return;
+ }
+
+ document.getElementsByClassName('email-south-pane')[0].classList.remove('disable-pane');
+
+ if(
+ appDisabled.indexOf('Core.SuperAdmin') * 1 != -1
+ ) {
+ document.getElementsByClassName('email-south-pane')[0].classList.add('disable-pane');
+ }
+ }
+ },
xns : Roo.bootstrap.panel,
'|xns' : 'Roo.bootstrap.panel',
layout : {
south : {
xtype : 'Region',
autoScroll : true,
+ cls : 'email-south-pane',
height : 200,
hideTabs : true,
split : true,
xtype : 'Button',
cls : 'roo-toolbar-button',
html : _this._strings['27a7146e1e1890e289bc7fad72876831'] /* <i class="fa fa-plus"></i> Create a template */,
+ listeners : {
+ render : function (_self)
+ {
+ this.hide();
+ }
+ },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
menu : {
cellSelection : true,
hover : true,
loadMask : true,
- responsive : true,
rowSelection : true,
listeners : {
cellclick : function (_self, el, rowIndex, columnIndex, e)
r.set('active', 0);
r.commit();
+
},
render : function (_self)
if(s.length){
options.params['search[nameortitle]'] = s;
}
+ // hide our system emails.
+ if (appDisabled.indexOf('Core.SuperAdmin') > -1) {
+ options.params._hide_system_emails = 1;
+ }
},
load : function (_self, records, options)
return String.format('<small>{0}</small>', r.data.from_name );
},
- xs : 2,
+ xs : 3,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
return grp_str + bcc_str;
},
- xs : 5,
+ xs : 4,
xns : Roo.grid,
'|xns' : 'Roo.grid'
}