From fe007013cdf8c4c5c05c7ee6767c1a10778e21f5 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 21 Nov 2016 15:53:37 +0800 Subject: [PATCH] Pman.Tab.BuilderPalette.bjs Pman.Tab.BuilderPalette.js --- Pman.Tab.BuilderPalette.bjs | 2 +- Pman.Tab.BuilderPalette.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Tab.BuilderPalette.bjs b/Pman.Tab.BuilderPalette.bjs index a68e859..31c6dae 100644 --- a/Pman.Tab.BuilderPalette.bjs +++ b/Pman.Tab.BuilderPalette.bjs @@ -26,7 +26,7 @@ { "listeners" : { "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.ds.load({});\n }\n if (_this.ss) {\n return;\n }\n _this.ss = Roo.util.CSS.createStyleSheet(\n'.pman-builder-palete-hide { display: none; } ' + \"\\n\" \n, Roo.id());\n \n \n \n}", - "rowclass" : "function (gridview, rowcfg)\n{\n var sn = Pman.Builder.Tree.currentNodeType();\n // Roo.log(rowcfg);\n if (!sn) {\n sn = '*top';\n }\n var cls = 'pman-builder-palete-hide';\n \n \n Roo.each(rowcfg.record.json.parents, function(n) {\n if (n == sn || n.split(':').shift() == sn) \n cls = '';\n return true;\n }\n );\n //Roo.log(cls);\n rowcfg.rowClass = cls;\n // what is the currently selected element..\n \n}" + "rowclass" : "function (gridview, rowcfg)\n{\n var sn = Pman.Builder.Tree.currentNodeType();\n // Roo.log(rowcfg);\n if (!sn) {\n sn = '*top';\n }\n var cls = 'pman-builder-palete-hide';\n \n Roo.each(rowcfg.record.json.parents, function(n) {\n if (n == sn || n.split(':').shift() == sn) \n cls = '';\n return true;\n }\n );\n \n //Roo.log(cls);\n rowcfg.rowClass = cls;\n // what is the currently selected element..\n \n}" }, "autoExpandColumn" : "name", "xtype" : "Grid", diff --git a/Pman.Tab.BuilderPalette.js b/Pman.Tab.BuilderPalette.js index 4085756..53a0711 100644 --- a/Pman.Tab.BuilderPalette.js +++ b/Pman.Tab.BuilderPalette.js @@ -72,7 +72,6 @@ Pman.Tab.BuilderPalette = new Roo.XComponent({ sn = '*top'; } var cls = 'pman-builder-palete-hide'; - Roo.each(rowcfg.record.json.parents, function(n) { if (n == sn || n.split(':').shift() == sn) @@ -80,6 +79,7 @@ Pman.Tab.BuilderPalette = new Roo.XComponent({ return true; } ); + //Roo.log(cls); rowcfg.rowClass = cls; // what is the currently selected element.. -- 2.39.2