1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.CoreNotifyRecurKeywords = {
10 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
11 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK",
12 '790f855c2139f2faecb810519e90b833' :"Add Notification Keywords"
18 show : function(data, cb)
26 this.dialog.show(this.data._el);
29 this.form.setValues(data);
30 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
38 this.dialog = Roo.factory({
43 xtype : 'LayoutRegion'
52 title : _this._strings['790f855c2139f2faecb810519e90b833'],
55 xtype : 'LayoutDialog',
59 text : _this._strings['ea4788705e6873b424c65e91c2846b19'],
71 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'],
77 var name = _this.form.findField('name').getValue();
78 name = name.toUpperCase().replace(/[^A-Z]+/g, '');
80 Roo.MessageBox.alert("Error","Please fill in a valid name");
83 _this.form.findField('name').setValue(name);
85 _this.form.doAction('submit');
92 show : function (_self)
104 xtype : 'ContentPanel',
109 style : 'margin: 5px',
110 url : baseURL + '/Roo/Core_notify_recur.php',
114 actioncomplete : function (_self, action)
116 if (action.type == 'setdata') {
119 _this.dialog.el.mask("Loading");
120 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
125 if (action.type == 'load') {
126 _this.dialog.el.unmask();
129 if (action.type == 'submit' ) {
130 _this.dialog.el.unmask();
133 if (_this.callback) {
134 _this.callback.call(_this, action.result.data);
139 rendered : function (form)