Pman.Dialog.CoreNotifyRecurKeywords = {
_strings : {
- '518ad9ed87d3ca17e223a91604b464d5' :"Add / Edit Core Enum",
- 'cfcd208495d565ef66e7dff9f98764da' :"0",
- 'c4ca4238a0b923820dcc509a6f75849b' :"1",
'ea4788705e6873b424c65e91c2846b19' :"Cancel",
- 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
+ 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK",
+ '790f855c2139f2faecb810519e90b833' :"Add Notification Keywords"
},
dialog : false,
height : 150,
modal : true,
resizable : false,
- title : _this._strings['518ad9ed87d3ca17e223a91604b464d5'],
+ title : _this._strings['790f855c2139f2faecb810519e90b833'],
width : 400,
xns : Roo,
xtype : 'LayoutDialog',
'|xns' : 'Roo.form',
method : 'POST',
style : 'margin: 5px',
- url : baseURL + '/Roo/core_enum.php',
+ url : baseURL + '/Roo/Core_notify_recur.php',
xns : Roo.form,
xtype : 'Form',
listeners : {
actioncomplete : function (_self, action)
{
if (action.type == 'setdata') {
-
- if((typeof(_this.data.etype) == 'undefined') || !_this.data.etype.length){
- Roo.MessageBox.alert('Error', 'Missing etype');
- _this.dialog.hide();
- return;
- }
- if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){
- _this.dialog.setTitle(_this.data.title);
- }
-
if(_this.data.id){
_this.dialog.el.mask("Loading");
this.load({ method: 'GET', params: { '_id' : _this.data.id }});
}
-
- return;
+
+ return;
}
if (action.type == 'load') {
_this.dialog.el.unmask();
}
},
items : [
- {
- '|xns' : 'Roo.form',
- actionMode : 'fieldEl',
- allowBlank : false,
- fieldLabel : 'Name',
- hidden : true,
- name : 'name',
- width : 200,
- xns : Roo.form,
- xtype : 'TextField'
- },
- {
- '|xns' : 'Roo.form',
- allowBlank : false,
- fieldLabel : 'Display Name',
- name : 'display_name',
- width : 200,
- xns : Roo.form,
- xtype : 'TextField',
- listeners : {
- keyup : function (_self, e)
- {
- _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());
-
- }
- }
- },
- {
- '|xns' : 'Roo.form',
- actionMode : 'fieldEl',
- checked : true,
- fieldLabel : 'Active',
- hidden : true,
- inputValue : 1,
- name : 'active',
- value : 1,
- valueOff : 0,
- xns : Roo.form,
- xtype : 'Checkbox'
- },
- {
- '|xns' : 'Roo.form',
- name : 'etype',
- xns : Roo.form,
- xtype : 'Hidden'
- },
- {
- '|xns' : 'Roo.form',
- name : 'seqid',
- value : 0,
- xns : Roo.form,
- xtype : 'Hidden'
- },
{
'|xns' : 'Roo.form',
name : 'id',