Pman.Tab.AdminEnum.bjs
authorbenny <benny@roojs.com>
Tue, 17 Jul 2018 07:03:25 +0000 (15:03 +0800)
committerbenny <benny@roojs.com>
Tue, 17 Jul 2018 07:03:25 +0000 (15:03 +0800)
Pman.Tab.AdminEnum.js

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

index c23b6b5..38c9c83 100644 (file)
             },
             {
              "listeners" : {
-              "|click" : "function()\n{\n    console.log(_this.grid.getSelectionModel().selection);\n    var s = _this.grid.getSelectionModel();\n    consol\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.getSelectionModel().selection);\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",
index 9b1075d..2ab671e 100644 (file)
@@ -648,8 +648,8 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
            click : function()
             {
                 console.log(_this.grid.getSelectionModel().selection);
-                var s = _this.grid.getSelectionModel();
-                consol
+                var s = _this.grid.getSelectionModel().getSelections();
+                
                 if (!s.length)  {
                     Roo.MessageBox.alert("Error", "Select a Row");
                     return;