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 _this.form.doAction('submit');
87 show : function (_self)
99 xtype : 'ContentPanel',
104 style : 'margin: 5px',
105 url : baseURL + '/Roo/Core_notify_recur.php',
109 actioncomplete : function (_self, action)
111 if (action.type == 'setdata') {
114 _this.dialog.el.mask("Loading");
115 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
120 if (action.type == 'load') {
122 _this.dialog.el.unmask();
124 _this.data = action.result.data;
126 if(typeof(_this.data.keywords) != 'undefined'){
128 var n = Roo.decode(_this.data.keywords);
129 _this.form.findField('keyword_filters').setValue(n);
134 if (action.type == 'submit' ) {
135 _this.dialog.el.unmask();
138 if (_this.callback) {
139 _this.callback.call(_this, action.result.data);
144 rendered : function (form)
155 url : baseURL + '/Roo/Projects.php',
161 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
164 totalProperty : 'total',
170 sortInfo : { direction : 'DESC', field: 'id' },
174 beforeload : function (_self, o){
175 o.params = o.params || {};
187 displayField : 'name',
189 emptyText : _this._strings['ded4cba1b04eb8236e24a3e39470d8a7'],
190 fieldLabel : 'Campaign',
191 forceSelection : true,
192 hiddenName : 'campaign_id',
194 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'],
196 name : 'camapign_id_name',
198 qtip : _this._strings['0ee0f676f631ad4e8a5844314a3a20de'],
199 queryParam : 'query[name]',
200 selectOnFocus : true,
201 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b></div>',
202 triggerAction : 'all',
219 url : baseURL + '/Roo/clipping_keywords.php',
225 fields : [{"name":"id","type":"int"},{"name":"keyword","type":"string"}],
228 totalProperty : 'total',
234 sortInfo : { direction : 'ASC', field: 'display_name' },
238 beforeload : function (_self, o){
239 o.params = o.params || {};
241 var s = _this.form.findField('campaign_id').getValue() * 1;
243 if(isNaN(s) || s < 1){
247 o.params.is_active = 1;
248 o.params.is_keyword = 1;
249 o.params.project_id = s;
260 displayField : 'keyword',
262 fieldLabel : 'Keyword',
263 forceSelection : true,
266 queryParam : 'query[keyword]',
267 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{keyword}</b> </div>',
268 triggerAction : 'all',
280 fieldLabel : 'Keywords',
281 hiddenName : 'keyword_filters',
282 name : 'keyword_filters_name',
285 xtype : 'ComboBoxArray',