[open-ils-commits] r12010 - trunk/Open-ILS/web/js/dojo/openils

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 29 10:27:52 EST 2009


Author: miker
Date: 2009-01-29 10:27:50 -0500 (Thu, 29 Jan 2009)
New Revision: 12010

Modified:
   trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js
Log:
always assume disconnect succeeds ... for now

Modified: trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js	2009-01-29 08:53:35 UTC (rev 12009)
+++ trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js	2009-01-29 15:27:50 UTC (rev 12010)
@@ -58,11 +58,13 @@
         },
 
         disconnect : function ( onerror ) {
+            this.connected = false;
+            return true;
+            // disconnect returns nothing, which is null, which is not true, cause the following to always run ... arg.
             if (!this.session.disconnect()) {
                 if (onerror) onerror(this.session);
                 return false;
             }
-            return true;
         },
         
 



More information about the open-ils-commits mailing list