Pman.Tab.BuilderPalette.bjs
[Pman.Builder] / Pman.Tab.BuilderPalette.bjs
index 868d8ab..d1d4c74 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Tab.BuilderPalette",
  "parent" : "Pman.Tab.BuilderTab",
  "title" : "Pman.Tab.BuilderPalette",
- "path" : "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
+ "path" : "/home/alan/gitlive/Pman.Builder/Pman.Tab.BuilderPalette.bjs",
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
@@ -14,9 +14,9 @@
    "listeners" : {
     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n       _this.grid.ds.load({})\n    }\n}"
    },
+   "region" : "east",
    "fitToframe" : true,
    "background" : true,
-   "region" : "east",
    "title" : "palette",
    "xtype" : "GridPanel",
    "fitContainer" : true,
@@ -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    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",
@@ -45,8 +45,8 @@
        "items" : [
         {
          "$ url" : "baseURL + '/Builder/Palette.php'",
-         "xtype" : "HttpProxy",
          "method" : "GET",
+         "xtype" : "HttpProxy",
          "$ xns" : "Roo.data",
          "* prop" : "proxy"
         },
@@ -63,8 +63,8 @@
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Name",
        "width" : 200,
+       "header" : "Name",
        "$ renderer" : "function(v) { return String.format('{0}', v); }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",