]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/BatchView.js
Added LIST_RESULTS_LONG service
[gpl/argeo-slc.git] / server / org.argeo.slc.ria / src / argeo-ria-lib / slc / class / org / argeo / slc / ria / BatchView.js
index c9bbc706d5ed49760655a2440ba72e6bd2f87243..5f68b2cf6eeca1f9a525e554eb999193d8d288dd 100644 (file)
@@ -42,10 +42,12 @@ qx.Class.define("org.argeo.slc.ria.BatchView",
                                                }\r
                                                var prefName = "slc.batch.autoclear";\r
                                                var prefValue = this.getRiaPreferenceValue(prefName);\r
-                                               if(prefValue !== null){\r
-                                                       this.executeBatchOnAgent(batchAgentId, prefValue);\r
-                                                       return;\r
+                                               if(prefValue !== null && prefValue === true){\r
+                                                       this.executeBatchOnAgent(batchAgentId, true);                                                   \r
+                                               }else{\r
+                                                       this.executeBatchOnAgent(batchAgentId, false);\r
                                                }\r
+                                               return;\r
                                                var modal = new org.argeo.ria.components.Modal("Clear?", null);\r
                                                modal.addYesNoReminder("Do you want to clear the batch automatically after execution?", prefName);\r
                                                modal.addListener("cancel", function(e){\r
@@ -400,7 +402,7 @@ qx.Class.define("org.argeo.slc.ria.BatchView",
                        } else {\r
                                this.list.add(item);\r
                        }\r
-                       this.list.select(item);\r
+                       this.list.setSelection([item]);\r
                        \r
                },\r
 \r