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.AddChildElementToPage = {
10 '463ab1bc075f498d1aa03b9bc062efa3' :"Element Type",
11 '9656c9cdb7ecd471b88284047d6d885b' :"Select Element",
12 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
13 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
14 'c9cc8cce247e49bae79f15173ce97354' :"Save",
15 'f4b319f11758cc6fe44c71999f7690ac' :"Type of element to add"
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({
42 xtype : 'LayoutDialog',
47 title : _this._strings['f4b319f11758cc6fe44c71999f7690ac'] /* Type of element to add */,
50 show : function (_self)
59 xtype : 'LayoutRegion',
66 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
68 click : function (_self, e)
78 text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
80 click : function (_self, e)
82 _this.form.doAction("submit");
92 xtype : 'ContentPanel',
100 style : 'margin:10px;',
101 url : baseURL + '/Roo/cms_category_type.php',
103 actioncomplete : function(_self,action)
105 if (action.type == 'setdata') {
109 if (action.type == 'load') {
113 if (action.type =='submit') {
117 if (_this.callback) {
118 _this.callback.call(_this, _this.form.getFieldValues());
126 rendered : function (form)
137 displayField : 'name',
139 emptyText : _this._strings['9656c9cdb7ecd471b88284047d6d885b'] /* Select Element */,
140 fieldLabel : _this._strings['463ab1bc075f498d1aa03b9bc062efa3'] /* Element Type */,
141 forceSelection : true,
142 hiddenName : 'element_id',
144 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
146 name : 'element_id_name',
148 qtip : _this._strings['9656c9cdb7ecd471b88284047d6d885b'] /* Select Element */,
149 selectOnFocus : true,
150 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
151 triggerAction : 'all',
159 sortInfo : { direction : 'ASC', field: 'seqid' },
161 beforeload : function (_self, o){
163 o.params = o.params || {};
167 if(!_this.data.template_id || _this.data.template_id * 1 < 1){
171 o.params.template_id = _this.data.template_id;
180 url : baseURL + '/Roo/Cms_template_element.php',
185 xtype : 'JsonReader',
198 totalProperty : 'total',