Pman.Dialog.AdminEnumType.bjs
[Pman.Admin] / Pman.Dialog.AdminEnumType.js
diff --git a/Pman.Dialog.AdminEnumType.js b/Pman.Dialog.AdminEnumType.js
new file mode 100644 (file)
index 0000000..23ccd3f
--- /dev/null
@@ -0,0 +1,38 @@
+//<script type="text/javascript">
+
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+Roo.namespace('Pman.Dialog');
+
+Pman.Dialog.AdminEnumType = {
+
+    dialog : false,
+    callback:  false,
+
+    show : function(data, cb)
+    {
+        if (!this.dialog) {
+            this.create();
+        }
+
+        this.callback = cb;
+        this.data = data;
+        this.dialog.show(this.data._el);
+        if (this.form) {
+           this.form.reset();
+           this.form.setValues(data);
+           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
+        }
+
+    },
+
+    create : function()
+    {
+        var _this = this;
+        this.dialog = Roo.factory({
+            '|xns' : 'Roo',
+            xtype : 'LayoutDialog',
+            xns : Roo
+        });
+    }
+};