Pman.Tab.AdminEnum.bjs
authorbenny <benny@roojs.com>
Tue, 17 Jul 2018 05:01:24 +0000 (13:01 +0800)
committerbenny <benny@roojs.com>
Tue, 17 Jul 2018 05:01:24 +0000 (13:01 +0800)
Pman.Tab.AdminEnum.js

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

index e4d2709..9b976e3 100644 (file)
             },
             {
              "listeners" : {
-              "|click" : "function()\n{\n    var s = _this.grid.RowSelectionModel.getSelections();\n    console.log(s);\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    var s = _this.grid.getSelectionModel().getSelections();\n    console.log(_this.grid.getSelectionModel());\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",
index d2f12af..7a3168c 100644 (file)
@@ -647,8 +647,8 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
           listeners : {
            click : function()
             {
-                var s = _this.grid.RowSelectionModel.getSelections();
-                console.log(s);
+                var s = _this.grid.getSelectionModel().getSelections();
+                console.log(_this.grid.getSelectionModel());
                 if (!s.length)  {
                     Roo.MessageBox.alert("Error", "Select a Row");
                     return;