{
"listeners" : {
"render" : "function (_self)\n{\n _this.partsBox = _self;\n}",
- "select" : "function (combo, record, index)\n{\n Roo.log('record');\n Roo.log(record);\n /* var event_id = _this.form.findField('id').getValue() * 1;\n \n if(typeof(record) == 'undefined' || !record || record.data.id * 1 < 1 || event_id < 1){\n return;\n }\n \n var err = false;\n\n _this.fgrid.ds.each(function(d){\n if(record.data.id == d.data.interest_id){\n err = true;\n }\n });\n\n if(err){\n Roo.MessageBox.alert('Error', record.data.display_name + ' already exists!');\n _this.focusBox.reset();\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/cal_event_focus.php',\n method : 'POST',\n params : {\n cal_event_id : event_id,\n interest_id : record.data.id\n }, \n success : function(res) {\n _this.focusBox.reset();\n _this.fgrid.footer.onClick('first');\n }\n }); */\n}"
+ "select" : "function (combo, record, index)\n{\n Roo.log('record');\n Roo.log(record);\n var id = _this.form.findField('id').getValue() * 1;\n \n if(typeof(record) == 'undefined' || !record || record.data.id * 1 < 1 || id < 1){\n return;\n }\n \n var err = false;\n\n _this.fgrid.ds.each(function(d){\n if(record.data.id == d.data.interest_id){\n err = true;\n }\n });\n\n if(err){\n Roo.MessageBox.alert('Error', record.data.display_name + ' already exists!');\n _this.focusBox.reset();\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/cal_event_focus.php',\n method : 'POST',\n params : {\n cal_event_id : event_id,\n interest_id : record.data.id\n }, \n success : function(res) {\n _this.focusBox.reset();\n _this.fgrid.footer.onClick('first');\n }\n }); \n}"
},
"alwaysQuery" : true,
"triggerAction" : "all",
{
Roo.log('record');
Roo.log(record);
- /* var event_id = _this.form.findField('id').getValue() * 1;
+ var id = _this.form.findField('id').getValue() * 1;
- if(typeof(record) == 'undefined' || !record || record.data.id * 1 < 1 || event_id < 1){
+ if(typeof(record) == 'undefined' || !record || record.data.id * 1 < 1 || id < 1){
return;
}
_this.focusBox.reset();
_this.fgrid.footer.onClick('first');
}
- }); */
+ });
}
},
items : [