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

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

index c96b016..d39aab8 100644 (file)
             },
             {
              "listeners" : {
-              "|click" : "function()\n{\n    console.log(_this.grid);\n    console.log(_this.grid.getSelectionModel());\n    var s = _this.grid.getSelectionModel().getSelectedCell();\n    \n    if (!s.length)  {\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    \n    var d = _this.grid.ds.getAt(s[0]);\n\n    Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n    \n}\n"
+              "|click" : "function()\n{\n    console.log(_this.grid);\n    console.log(_this.grid.getSelectionModel());\n    var s = _this.grid.getSelectionModel().getSelectedCell();\n    console.log(s);\n    if (!s.length)  {\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    console.log(_this.grid.ds);\n    var d = _this.grid.ds.getAt(s[0]);\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 85a78a1..6dcb074 100644 (file)
@@ -650,12 +650,12 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
                 console.log(_this.grid);
                 console.log(_this.grid.getSelectionModel());
                 var s = _this.grid.getSelectionModel().getSelectedCell();
-                
+                console.log(s);
                 if (!s.length)  {
                     Roo.MessageBox.alert("Error", "Select a Row");
                     return;
                 }
-                
+                console.log(_this.grid.ds);
                 var d = _this.grid.ds.getAt(s[0]);
             
                 Pman.Dialog.AdminEnumMerge.show(d.data, function() {