Pman.Tab.AdminNotify = new Roo.XComponent({
_strings : {
+ 'aed6676e8238afe7cf55e3baf2ad72a2' :"Search Subject",
'136fac3c5c5881e0a7d0039e57decd68' :"Select notify type",
'bf1cb7e2a337a5e2ebf614009cbce9cc' :"Current Notifications",
'8535bcc0f05358a583bb432bbadf7e0d' :"Select type",
items : [
{
xtype : 'GridPanel',
- background : true,
+ background : false,
fitContainer : true,
fitToframe : true,
region : 'center',
xns : Roo,
'|xns' : 'Roo',
items : [
+ {
+ xtype : 'TextField',
+ emptyText : _this._strings['aed6676e8238afe7cf55e3baf2ad72a2'] /* Search Subject */,
+ listeners : {
+ render : function (_self)
+ {
+ _this.searchBox = this;
+ },
+ specialkey : function (_self, e)
+ {
+ _this.grid.footer.onClick('first');
+ }
+ },
+ xns : Roo.form,
+ '|xns' : 'Roo.form'
+ },
{
xtype : 'ComboBox',
allowBlank : true,
if (!_this.toggleBtn.pressed) {
options.params['event_id'] = 0;
+ } else {
+ options.params['!event_id'] = 0;
}
+
if (!_this.personCombo) {
return false;
}
if(type.length){
options.params.evtype = type;
}
+ options.params['search[contains]'] = _this.searchBox.getValue();
+
}
},
xns : Roo.data,
},
sm : {
xtype : 'RowSelectionModel',
- singleSelect : true,
+ singleSelect : false,
listeners : {
afterselectionchange : function (_self)
{
return;
}
var id = this.getSelected().data.event_id;
- if (id *1 < 0) {
+ if (id *1 < 1) {
- this.viewPanel.setContent("No Event for this line");
+ _this.viewPanel.setContent("No Event for this line");
return;
}
_this.viewPanel.load( { url : baseURL + "/Admin/EventView/" + id + ".html" });
return String.format('<span qtip="{0}">{1}</span>', v, vv );
},
sortable : true,
- width : 100,
+ width : 70,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
header : _this._strings['0f6d01b16d57911731aa44b94dbfefcc'] /* Act when */,
renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); },
sortable : true,
- width : 150,
+ width : 130,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
return String.format('{0}', v ? v.format('d/M/Y H:i:s') : '');
},
sortable : true,
- width : 150,
+ width : 130,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
dataIndex : 'msgid',
header : _this._strings['12832b4def6eb0b6105b3d11e16066ea'] /* Msgid */,
renderer : function(v) { return String.format('{0}', v); },
- width : 200,
+ width : 50,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},