Author: michiel
Date: 2010-03-17 13:30:47 +0100 (Wed, 17 Mar 2010)
New Revision: 41462

Modified:
   
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp
Log:
sometimes you get the 'Cannot leave because still saving' message. Simply don't 
commit if a commit is sill running will fix it

Modified: 
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp
===================================================================
--- 
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp
      2010-03-17 12:30:22 UTC (rev 41461)
+++ 
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp
      2010-03-17 12:30:47 UTC (rev 41462)
@@ -696,6 +696,10 @@
 List.prototype.commit = function(stale, leavePage) {
     var result;
     var self = this;
+    if (this.saving) {
+        // already saving right now
+        return;
+    }
     if(this.needsCommit() && ! List.prototype.leftPage) {
 
         if (this.valid) {
@@ -723,10 +727,6 @@
                         params[this.name || this.id || this.parentNode.name || 
this.parentNode.id ] = $(this).val();
                 });
 
-
-
-
-                var self = this;
                 this.loader();
                 $(self.div).trigger("mmsrStartSave", [self]);
                 result = null;

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to