sync
[Pman.Admin] / Pman.Tab.AdminOffice.js
index 76942eb..532fce2 100644 (file)
@@ -27,7 +27,7 @@ Pman.Tab.AdminOffice = new Roo.XComponent({
   name     : "Pman.Tab.AdminOffice",
   disabled : false, 
   permname : '', 
-  _tree : function()
+  _tree : function(_data)
   {
    var _this = this;
    var MODULE = this;
@@ -104,8 +104,8 @@ Pman.Tab.AdminOffice = new Roo.XComponent({
                  Roo.MessageBox.alert("Error", "Select an company to add an office to");
                  return;
              }
-             var cdata = sd .data;
-             _dialog.show( { 
+             var cdata = sd.data;
+             _this. dialog.show( { 
                  id : 0 ,
                  company_name : cdata.name,
                  company_id : cdata.id,
@@ -191,7 +191,7 @@ Pman.Tab.AdminOffice = new Roo.XComponent({
      proxy : {
       xtype : 'HttpProxy',
       method : 'GET',
-      url : baseURL + '/Roo/Office.php',
+      url : baseURL + '/Roo/core_office.php',
       xns : Roo.data,
       '|xns' : 'Roo.data'
      },