Pman.Dialog.AdminCompanyMerge.bjs
[Pman.Admin] / Pman.Dialog.AdminCompanyMerge.js
index 1bf0ade..eabcc26 100644 (file)
@@ -50,9 +50,7 @@ Pman.Dialog.AdminCompanyMerge = {
     listeners : {
      show : function (_self)
       {
-          if (_this.isBuilder) {
-              _this.data = { id : 2, comptype : 'SUPPLIER' }
-          }
+          
       }
     },
     xns : Roo,
@@ -101,7 +99,7 @@ Pman.Dialog.AdminCompanyMerge = {
         xtype : 'Form',
         method : 'POST',
         style : 'margin: 10px;',
-        url : baseURL + '/Roo/Core_enum.php',
+        url : baseURL + '/Roo/Core_company.php',
         listeners : {
          actioncomplete : function (_self, action)
           {
@@ -116,10 +114,10 @@ Pman.Dialog.AdminCompanyMerge = {
                   _this.form.reset();
                   return;
               }
+              
               if (action.type == 'setdata') {
                   
-                   var title = _this.data.title  || _this.data.etype;
-                  _this.dialog.setTitle("Delete selected " + title + " and merge data with");
+                  _this.dialog.setTitle("Delete selected " + _this.data.name + " and merge data with");
                    
                  return;
               }