Pman.Tab.AdminEnum.bjs
authorbenny <benny@roojs.com>
Tue, 17 Jul 2018 08:12:10 +0000 (16:12 +0800)
committerbenny <benny@roojs.com>
Tue, 17 Jul 2018 08:12:10 +0000 (16:12 +0800)
Pman.Tab.AdminEnum.js

Pman.Tab.AdminEnum.bjs
Pman.Tab.AdminEnum.js

index a907a66..66c11ba 100644 (file)
             },
             {
              "listeners" : {
-              "|click" : "function()\n{\n    var s = [];\n    s.push(_this.grid.selModel.selection.record.id);\n    \n    if (s.length * 1 < 1)  {\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    \n    var select_index = _this.grid.selModel.selection.record.selected;\n    \n    var d = _this.grid.ds.data(s[select_index]);\n    \n    Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n    \n}\n"
+              "|click" : "function()\n{\n    var s = [];\n    s.push(_this.grid.selModel.selection.record.id);\n    \n    if (s.length * 1 < 1)  {\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    \n    var select_index = _this.grid.selModel.selection.record.selected;\n    console.log(_this.grid.ds);\n    var d = _this.grid.ds.data(s[select_index]);\n    \n    Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n    \n}\n"
              },
              "text" : "Merge Option",
              "xtype" : "Button",
index b82caed..6df2373 100644 (file)
@@ -656,7 +656,7 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
                 }
                 
                 var select_index = _this.grid.selModel.selection.record.selected;
-                
+                console.log(_this.grid.ds);
                 var d = _this.grid.ds.data(s[select_index]);
                 
                 Pman.Dialog.AdminEnumMerge.show(d.data, function() {