DataObjects/builder.sql
[Pman.Builder] / Pman.Dialog.BuilderImport.js
index eb997a8..81bf609 100644 (file)
@@ -32,11 +32,11 @@ Pman.Dialog.BuilderImport = {
             xns: Roo,
             closable : false,
             collapsible : false,
-            height : 230,
+            height : 330,
+            modal : true,
             resizable : false,
             title : "Edit / Create core_enum",
-            width : 400,
-            modal : true,
+            width : 500,
             items : [
                 {
                     xtype: 'ContentPanel',
@@ -50,17 +50,16 @@ Pman.Dialog.BuilderImport = {
                                 actioncomplete : function(_self,action)
                                 {
                                     if (action.type == 'setdata') {
-                                       //_this.dialog.el.mask("Loading");
-                                       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+                                       
+                                       this.load({ method: 'GET', params: { '_id' : _this.data.id }});
                                        return;
                                     }
                                     if (action.type == 'load') {
-                                        _this.dialog.el.unmask();
+                                 
                                         return;
                                     }
                                     if (action.type =='submit') {
-                                    
-                                        _this.dialog.el.unmask();
+                                     
                                         _this.dialog.hide();
                                     
                                          if (_this.callback) {
@@ -78,14 +77,15 @@ Pman.Dialog.BuilderImport = {
                             labelAlign : 'top',
                             method : 'POST',
                             style : 'margin:10px;',
-                            url : baseURL + '/Roo/core_enum.php',
+                            url : baseURL + '/Roo/builder_part',
                             items : [
                                 {
-                                    xtype: 'TextField',
+                                    xtype: 'TextArea',
                                     xns: Roo.form,
-                                    fieldLabel : 'Display name',
-                                    name : 'display_name',
-                                    width : 200
+                                    fieldLabel : 'Paste BJS code from export',
+                                    height : 200,
+                                    name : 'json',
+                                    width : 410
                                 },
                                 {
                                     xtype: 'Hidden',