Pman.Tab.BuilderPalette.bjs
authoredward <edward@roojs.com>
Mon, 21 Nov 2016 07:52:41 +0000 (15:52 +0800)
committeredward <edward@roojs.com>
Mon, 21 Nov 2016 07:52:41 +0000 (15:52 +0800)
Pman.Tab.BuilderPalette.js

Pman.Tab.BuilderPalette.bjs
Pman.Tab.BuilderPalette.js

index 5745d44..a68e859 100644 (file)
@@ -25,7 +25,7 @@
    "items" : [
     {
      "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}",
+      "|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}"
      },
      "autoExpandColumn" : "name",
index fc0351e..4085756 100644 (file)
@@ -52,7 +52,7 @@ Pman.Tab.BuilderPalette = new Roo.XComponent({
           _this.grid = this; 
           //_this.dialog = Pman.Dialog.FILL_IN
           if (_this.panel.active) {
-             this.ds.load({})
+             this.ds.load({});
           }
           if (_this.ss) {
               return;