From: Alan Knowles Date: Fri, 10 Aug 2018 03:59:14 +0000 (+0800) Subject: Pman.Tab.BuilderPalette.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Builder;a=commitdiff_plain;h=b062ea491d30282543309692ff74b3c0206109b7 Pman.Tab.BuilderPalette.bjs Pman.Tab.BuilderPalette.js --- diff --git a/Pman.Tab.BuilderPalette.bjs b/Pman.Tab.BuilderPalette.bjs index d1d4c74..cecda60 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 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}" + "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 0062527..c839923 100644 --- a/Pman.Tab.BuilderPalette.js +++ b/Pman.Tab.BuilderPalette.js @@ -78,7 +78,7 @@ Pman.Tab.BuilderPalette = new Roo.XComponent({ cls = ''; return true; } - ); + }); //Roo.log(cls); rowcfg.rowClass = cls;