Pman.Dialog.BuilderAddTable.bjs
authorAlan Knowles <alan@akbkhome.com>
Mon, 31 Oct 2011 06:00:51 +0000 (14:00 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 31 Oct 2011 06:00:51 +0000 (14:00 +0800)
Pman.Dialog.BuilderAddTable.bjs
Pman.Dialog.BuilderAddTable.js
Pman.Dialog.BuilderAddTable.js

Pman.Dialog.BuilderAddTable.bjs
Pman.Dialog.BuilderAddTable.js

index 050c274..df53cc7 100644 (file)
@@ -51,7 +51,7 @@
                                 {
                                     "listeners": {
                                         "beforeload": "function (_self, options)\n{\n    if (typeof(_this.data) == 'undefined') {\n        return false;\n    \n    }\n    options.params = options.params || {};\n    options.params.table = _this.data.table;\n}",
-                                        "load": "function (_self, records, options)\n{\n    // after load, if we have configuration already, overlay that \n    if (typeof(_this.data.cols) == 'undefined') {\n        return;\n    }\n    var cmap = {}\n    Roo.each(_this.data.cols, function (col) {\n        cmap[col.column] = col;\n    \n    });\n    Roo.each(records, function (col) {\n        if (typeof(cmap[col.data.column]) == 'undefined') {\n            return;\n        }\n        col.set('use', cmap[col.data.column].use);\n        col.set('use_ex', _this.data.cols_ex.indexOf(col.data.column) > -1 ? 1 : 0);\n        // what about descption..\n    });\n      \n        \n        \n}"
+                                        "load": "function (_self, records, options)\n{\n    // after load, if we have configuration already, overlay that \n    if (typeof(_this.data.cols) == 'undefined') {\n        return;\n    }\n    _this.data.cols_ex = _this.data.cols_ex || [];\n    var cmap = {}\n    Roo.each(_this.data.cols, function (col) {\n        cmap[col.column] = col;\n    \n    });\n    Roo.each(records, function (col) {\n        if (typeof(cmap[col.data.column]) == 'undefined') {\n            return;\n        }\n        col.set('use', cmap[col.data.column].use);\n        col.set('use_ex', _this.data.cols_ex.indexOf(col.data.column) > -1 ? 1 : 0);\n        // what about descption..\n    });\n      \n        \n        \n}"
                                     },
                                     "*prop": "dataSource",
                                     "remoteSort": true,
index 5bb304e..1f32784 100644 (file)
@@ -107,6 +107,7 @@ Pman.Dialog.BuilderAddTable = {
                                     if (typeof(_this.data.cols) == 'undefined') {
                                         return;
                                     }
+                                    _this.data.cols_ex = _this.data.cols_ex || [];
                                     var cmap = {}
                                     Roo.each(_this.data.cols, function (col) {
                                         cmap[col.column] = col;