Pman.Dialog.XtupleCustomer.bjs
authorEdward <edward@roojs.com>
Tue, 10 Feb 2015 07:25:52 +0000 (15:25 +0800)
committerEdward <edward@roojs.com>
Tue, 10 Feb 2015 07:25:52 +0000 (15:25 +0800)
Pman.Dialog.XtupleCustomer.js

Pman.Dialog.XtupleCustomer.bjs
Pman.Dialog.XtupleCustomer.js

index c95da02..f933c63 100644 (file)
                     "items" : [
                         {
                             "listeners" : {
+                                "rowdblclick" : "function (_self, rowIndex, e)\n{\n   var s =  _self.getDataSource().getAt(rowIndex);\n   \n   new Pman.Download({\n        url : baseURL + '/Images/Download/' + s.data.id\n    });\n   \n}",
                                 "|render" : "function() \n{\n    _this.igrid = this; \n\n    if (_this.ipanel.active) {\n       this.footer.onClick('first');\n    }\n}"
                             },
                             "autoExpandColumn" : "imgtype",
index 991f50b..c7b049c 100644 (file)
@@ -2021,6 +2021,15 @@ Pman.Dialog.XtupleCustomer = {
                                    }
                         ],
                         listeners : {
+                               rowdblclick : function (_self, rowIndex, e)
+                                  {
+                                     var s =  _self.getDataSource().getAt(rowIndex);
+                                     
+                                     new Pman.Download({
+                                          url : baseURL + '/Images/Download/' + s.data.id
+                                      });
+                                     
+                                  },
                                render : function() 
                                   {
                                       _this.igrid = this;