From 2ef57f7faa712d965a7aff6be15467b08f790e34 Mon Sep 17 00:00:00 2001 From: benny Date: Tue, 17 Jul 2018 16:44:34 +0800 Subject: [PATCH] Pman.Tab.AdminEnum.bjs Pman.Tab.AdminEnum.js --- Pman.Tab.AdminEnum.bjs | 2 +- Pman.Tab.AdminEnum.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Tab.AdminEnum.bjs b/Pman.Tab.AdminEnum.bjs index 15da893..c96b016 100644 --- a/Pman.Tab.AdminEnum.bjs +++ b/Pman.Tab.AdminEnum.bjs @@ -316,7 +316,7 @@ }, { "listeners" : { - "|click" : "function()\n{\n console.log(_this.grid);\n console.log(_this.grid.getSelectionModel());\n var s = _this.grid.getSelectionModel().getSelections();\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 \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" }, "text" : "Merge Option", "xtype" : "Button", diff --git a/Pman.Tab.AdminEnum.js b/Pman.Tab.AdminEnum.js index 1897dd0..85a78a1 100644 --- a/Pman.Tab.AdminEnum.js +++ b/Pman.Tab.AdminEnum.js @@ -649,7 +649,7 @@ Pman.Tab.AdminEnum = new Roo.XComponent({ { console.log(_this.grid); console.log(_this.grid.getSelectionModel()); - var s = _this.grid.getSelectionModel().getSelections(); + var s = _this.grid.getSelectionModel().getSelectedCell(); if (!s.length) { Roo.MessageBox.alert("Error", "Select a Row"); -- 2.39.2