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 '0ee0f676f631ad4e8a5844314a3a20de' :"Select campaign",
11 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
12 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
13 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK",
14 '790f855c2139f2faecb810519e90b833' :"Add Notification Keywords",
15 'ded4cba1b04eb8236e24a3e39470d8a7' :"Select Campaign"
21 show : function(data, cb)
29 this.dialog.show(this.data._el);
32 this.form.setValues(data);
33 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
41 this.dialog = Roo.factory({
46 xtype : 'LayoutRegion'
55 title : _this._strings['790f855c2139f2faecb810519e90b833'],
58 xtype : 'LayoutDialog',
62 text : _this._strings['ea4788705e6873b424c65e91c2846b19'],
74 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'],
80 var name = _this.form.findField('name').getValue();
81 name = name.toUpperCase().replace(/[^A-Z]+/g, '');
83 Roo.MessageBox.alert("Error","Please fill in a valid name");
86 _this.form.findField('name').setValue(name);
88 _this.form.doAction('submit');
96 show : function (_self)
108 xtype : 'ContentPanel',
113 style : 'margin: 5px',
114 url : baseURL + '/Roo/Core_notify_recur.php',
118 actioncomplete : function (_self, action)
120 if (action.type == 'setdata') {
123 _this.dialog.el.mask("Loading");
124 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
129 if (action.type == 'load') {
130 _this.dialog.el.unmask();
133 if (action.type == 'submit' ) {
134 _this.dialog.el.unmask();
137 if (_this.callback) {
138 _this.callback.call(_this, action.result.data);
143 rendered : function (form)
160 url : baseURL + '/Roo/Projects.php',
166 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
169 totalProperty : 'total',
175 sortInfo : { direction : 'DESC', field: 'id' },
179 beforeload : function (_self, o){
180 o.params = o.params || {};
192 displayField : 'name',
194 emptyText : _this._strings['ded4cba1b04eb8236e24a3e39470d8a7'],
195 fieldLabel : 'Campaign',
196 forceSelection : true,
197 hiddenName : 'campaign_id',
199 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'],
201 name : 'camapign_id_name',
203 qtip : _this._strings['0ee0f676f631ad4e8a5844314a3a20de'],
204 queryParam : 'query[name]',
205 selectOnFocus : true,
206 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b></div>',
207 triggerAction : 'all',