]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Disable clear batch on execution modal window.
authorCharles du Jeu <charles.dujeu@gmail.com>
Thu, 30 Jul 2009 19:45:47 +0000 (19:45 +0000)
committerCharles du Jeu <charles.dujeu@gmail.com>
Thu, 30 Jul 2009 19:45:47 +0000 (19:45 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2841 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

server/org.argeo.slc.ria/src/argeo-ria-lib/slc/class/org/argeo/slc/ria/BatchView.js

index c9bbc706d5ed49760655a2440ba72e6bd2f87243..2b7a30f3eb5678795bdc39d791c1a83d006bbc76 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