Author: michiel
Date: 2009-12-08 13:57:14 +0100 (Tue, 08 Dec 2009)
New Revision: 40147

Modified:
   
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp
Log:
upload only if not invalid, include also reason in 'not valid' result 

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
      2009-12-08 12:49:14 UTC (rev 40146)
+++ 
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp
      2009-12-08 12:57:14 UTC (rev 40147)
@@ -640,7 +640,7 @@
     if(this.needsCommit() && ! List.prototype.leftPage) {
         this.find(null, "input").each(function() {
                 if (this.type == 'file') {
-                    if ($(this).val().length > 0) {
+                    if ($(this).val().length > 0 && ! 
$(this).hasClass("invalid")) {
                         //console.log("Uploading " + this.id);
                         self.upload(this.id);
                     }
@@ -699,7 +699,7 @@
                 result = "not stale";
             }
         } else {
-            result = "not valid";
+            result = "not valid (" + reason + ")";
         }
     } else {
         result = null;

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to