X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminCompanies.bjs;h=8b1cca5b740fc0d01ee65c94301876b120b0730a;hp=4b956d20cced05bc83f589095182f9111be4a0fd;hb=HEAD;hpb=6c819acce40228ee4d4a0a6d007a1c10558bc9aa diff --git a/Pman.Tab.AdminCompanies.bjs b/Pman.Tab.AdminCompanies.bjs index 4b956d2..3293cb7 100644 --- a/Pman.Tab.AdminCompanies.bjs +++ b/Pman.Tab.AdminCompanies.bjs @@ -28,8 +28,10 @@ "title" : "Companies", "xtype" : "NestedLayoutPanel", "$ xns" : "Roo", + "Boolean background" : true, "items" : [ { + "Object listeners" : "", "xtype" : "BorderLayout", "$ xns" : "Roo", "* prop" : "layout", @@ -51,9 +53,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, + "fitToframe" : true, "background" : true, "region" : "center", - "fitToframe" : true, "title" : "Companies", "xtype" : "GridPanel", "fitContainer" : true, @@ -74,7 +76,7 @@ "items" : [ { "listeners" : { - "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n try {\n o.params['query[name]'] = _this.searchBox.getValue();\n } catch(e) { return false; }\n}", + "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n try {\n o.params['search[name]'] = _this.searchBox.getValue();\n } catch(e) { return false; }\n}", "load" : "function (_self, records, options)\n{\n try {\n Pman.Tab.AdminOffice.grid.footer.onClick('refresh');\n } catch (e) {}\n}" }, "xtype" : "Store", @@ -185,7 +187,7 @@ }, { "listeners" : { - "|click" : "function()\n{\n Pman.genericDelete(_this, 'Companies'); \n}\n " + "|click" : "function()\n{\n Pman.genericDelete(_this, 'core_company'); \n}\n " }, "text" : "Delete", "xtype" : "Button", @@ -203,7 +205,7 @@ "$ renderer" : "function (v,x ,r) {\n //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n return v;\n}", "$ xns" : "Roo.grid", "* prop" : "colModel[]", - "dataIndex" : "comptype" + "dataIndex" : "comptype_id_display_name" }, { "xtype" : "ColumnModel",