From: benny Date: Tue, 17 Jul 2018 05:01:59 +0000 (+0800) Subject: Pman.Tab.AdminEnum.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=279b104658210001eece2234775e1e7fc9fa27f2 Pman.Tab.AdminEnum.bjs Pman.Tab.AdminEnum.js --- diff --git a/Pman.Tab.AdminEnum.bjs b/Pman.Tab.AdminEnum.bjs index af12ac1..bcf3eb6 100644 --- a/Pman.Tab.AdminEnum.bjs +++ b/Pman.Tab.AdminEnum.bjs @@ -316,7 +316,7 @@ }, { "listeners" : { - "|click" : "function()\n{\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.RowSelectionModel());\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" }, "text" : "Merge Option", "xtype" : "Button", diff --git a/Pman.Tab.AdminEnum.js b/Pman.Tab.AdminEnum.js index 874b39d..141e5b5 100644 --- a/Pman.Tab.AdminEnum.js +++ b/Pman.Tab.AdminEnum.js @@ -647,7 +647,7 @@ Pman.Tab.AdminEnum = new Roo.XComponent({ listeners : { click : function() { - console.log(_this.grid.getSelectionModel()); + console.log(_this.grid.RowSelectionModel()); var s = _this.grid.getSelectionModel().getSelections(); if (!s.length) {