1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.CmsTranslateTemplates = {
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',
39 title : "Add / Edit Location Details",
43 xtype: 'ContentPanel',
53 actionfailed : function (_self, action)
55 _this.dialog.el.unmask();
56 Pman.standardActionFailed(_self, action);
58 actioncomplete : function (_self, action)
61 if (action.type == 'setdata') {
62 //_this.dialog.el.mask("Loading");
64 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
68 if (action.type == 'load') {
71 if (action.type =='submit') {
74 _this.callback.call(_this, _this.form.getValues());
80 rendered : function (form)
86 style : 'margin: 5px',
87 url : baseURL + '/Roo/Ris_location.php',
98 fieldLabel : 'Original',
111 fieldLabel : 'Translation',
117 xtype: 'DisplayField',
119 value : "aaaaaaaaaaaaaaa"
131 xtype: 'LayoutRegion',
153 _this.dialog.el.mask("Saving");
154 _this.form.doAction('submit');