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.CoreNotifyServer = {
10 '7082f08d3a32017e44122c3c708ce06a' :"Add / Edit Server",
11 '7e240928383acb93e5066a6149430337' :"Pool Name",
12 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
13 '2059e6f007c7ec60d08be149f4196c0c' :"Helo Name",
14 'e253f01e45700c07327115a5e6d677bf' :"Is Active?",
15 'c8f4b8c435b3d99a66e1b91bec60737c' :"Hostname",
16 'c9cc8cce247e49bae79f15173ce97354' :"Save"
19 'hostname_fieldLabel' : 'c8f4b8c435b3d99a66e1b91bec60737c' /* Hostname */ ,
20 'is_active_fieldLabel' : 'e253f01e45700c07327115a5e6d677bf' /* Is Active? */ ,
21 'poolname_fieldLabel' : '7e240928383acb93e5066a6149430337' /* Pool Name */ ,
22 'helo_fieldLabel' : '2059e6f007c7ec60d08be149f4196c0c' /* Helo Name */
28 show : function(data, cb)
36 this.dialog.show.apply(this.dialog, Array.prototype.slice.call(arguments).slice(2));
39 this.form.setValues(data);
40 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
48 this.dialog = Roo.factory({
49 xtype : 'LayoutDialog',
55 title : _this._strings['7082f08d3a32017e44122c3c708ce06a'] /* Add / Edit Server */,
60 xtype : 'LayoutRegion',
67 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
69 click : function (_self, e)
80 text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
82 click : function (_self, e)
85 _this.form.doAction("submit");
95 xtype : 'ContentPanel',
104 style : 'margin:10px;',
105 url : baseURL + '/Roo/core_notify_server',
107 actioncomplete : function(_self,action)
109 if (action.type == 'setdata') {
111 if (_this.data.clone_of) {
112 _this.dialog.el.mask("Loading");
113 this.load({ method: 'GET', params: { '_id' : _this.data.clone_of }});
117 if (action.type == 'load') {
118 _this.dialog.el.unmask();
123 if (action.type =='submit') {
125 _this.dialog.el.unmask();
131 _this.callback.call(_this, action.result.data);
137 actionfailed : function (_self, action)
139 _this.dialog.el.unmask();
141 Pman.standardActionFailed(_self, action);
143 rendered : function (form)
154 fieldLabel : _this._strings['c8f4b8c435b3d99a66e1b91bec60737c'] /* Hostname */,
163 fieldLabel : _this._strings['2059e6f007c7ec60d08be149f4196c0c'] /* Helo Name */,
172 fieldLabel : _this._strings['7e240928383acb93e5066a6149430337'] /* Pool Name */,
180 fieldLabel : _this._strings['e253f01e45700c07327115a5e6d677bf'] /* Is Active? */,