Pman.Dialog.CoreAutoSavePreview.bjs
authorEdward <edward@roojs.com>
Thu, 8 May 2014 11:11:32 +0000 (19:11 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 11:11:32 +0000 (19:11 +0800)
Pman.Dialog.CoreAutoSavePreview.js

Pman.Dialog.CoreAutoSavePreview.bjs
Pman.Dialog.CoreAutoSavePreview.js

index 1291403..5661aa6 100644 (file)
@@ -67,7 +67,7 @@
                                 {
                                     "listeners": {
                                         "beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    \n    if(typeof(_this.data) == 'undefined'){\n        this.removeAll();\n        return false;\n    }\n\n    var d = Roo.apply({}, _this.data);\n    delete d.successFn;\n\n    Roo.apply(o.params, d);\n    \n}",
-                                        "load": "function (_self, records, options)\n{\n    var sm = _this.grid.getSelectionModel();\n    if (!sm.getSelections().length) {\n        sm.selectFirstRow();\n    }\n}"
+                                        "load": "function (_self, records, options)\n{\n    var sm = _this.grid.getSelectionModel();\n    if (!sm.getSelections().length) {\n        sm.selectFirstRow();\n        \n    }\n}"
                                     },
                                     "*prop": "dataSource",
                                     "remoteSort": true,
index 6511474..8646ae4 100644 (file)
@@ -141,6 +141,7 @@ Pman.Dialog.CoreAutoSavePreview = {
                                     var sm = _this.grid.getSelectionModel();
                                     if (!sm.getSelections().length) {
                                         sm.selectFirstRow();
+                                        
                                     }
                                 }
                             },