cmmit
[Pman.Admin] / Pman.Tab.AdminCompanies.js
index 0b76df0..0feb97c 100644 (file)
@@ -31,7 +31,7 @@ Pman.Tab.AdminCompanies = new Roo.XComponent({
   name     : "Pman.Tab.AdminCompanies",
   disabled : false, 
   permname : 'Admin.Companies', 
-  _tree : function()
+  _tree : function(_data)
   {
    var _this = this;
    var MODULE = this;
@@ -43,6 +43,7 @@ Pman.Tab.AdminCompanies = new Roo.XComponent({
    '|xns' : 'Roo',
    layout : {
     xtype : 'BorderLayout',
+    listeners : '',
     xns : Roo,
     '|xns' : 'Roo',
     center : {
@@ -256,7 +257,7 @@ Pman.Tab.AdminCompanies = new Roo.XComponent({
           listeners : {
            click : function()
             {
-                 Pman.genericDelete(_this, 'Companies'); 
+                Pman.genericDelete(_this, 'Companies'); 
             }
           },
           xns : Roo.Toolbar,
@@ -273,7 +274,7 @@ Pman.Tab.AdminCompanies = new Roo.XComponent({
           {
              o.params = o.params || {};
              try {
-                 o.params['query[name]'] = _this.searchBox.getValue();
+                 o.params['search[name]'] = _this.searchBox.getValue();
              } catch(e) { return false; }
           },
          load : function (_self, records, options)