1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.AdminWatch = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
37 title : "Edit / Create core_watch",
41 xtype: 'ContentPanel',
49 actioncomplete : function(_self,action)
51 if (action.type == 'setdata') {
52 //_this.dialog.el.mask("Loading");
53 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
56 if (action.type == 'load') {
57 _this.dialog.el.unmask();
60 if (action.type =='submit') {
62 _this.dialog.el.unmask();
66 _this.callback.call(_this, _this.form.getValues());
72 rendered : function (form)
78 style : 'margin:10px;',
79 url : baseURL + '/Roo/core_watch.php',
84 fieldLabel : 'Ontable',
100 emptyText : "Select Person",
101 forceSelection : true,
103 loadingText : "Searching...",
106 qtip : "Select Person",
107 selectOnFocus : true,
108 triggerAction : 'all',
111 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
112 queryParam : 'query[name]',
113 fieldLabel : 'Person',
115 displayField : 'name',
116 hiddenName : 'person_id',
117 name : 'person_id_name',
122 sortInfo : { direction : 'ASC', field: 'id' },
124 beforeload : function (_self, o){
125 o.params = o.params || {};
133 url : baseURL + '/Roo/Person.php'
140 totalProperty : 'total',
141 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
148 fieldLabel : 'Event',
155 fieldLabel : 'Medium',
162 fieldLabel : 'Active',
177 xtype: 'LayoutRegion',
185 click : function (_self, e)
196 click : function (_self, e)
201 _this.dialog.el.mask("Saving");
202 _this.form.doAction("submit");