Author: andre
Date: 2009-06-25 22:25:16 +0200 (Thu, 25 Jun 2009)
New Revision: 36433

Modified:
   openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js
Log:
rework of editors, time out in ajax editors, editing and creating nodes

Modified: openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js
===================================================================
--- openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js   2009-06-25 
20:18:26 UTC (rev 36432)
+++ openimages/trunk/src/main/webapp/style/js/mmajaxeditor.js   2009-06-25 
20:25:16 UTC (rev 36433)
@@ -107,7 +107,7 @@
        // this function gets the response passed from ajaxForm()
        // so, 'this' contains the returned form/html (not the current 
mmmajaxeditor div)
        $("#" + this.id).removeClass("mmajaxeditor");
-       $(this).find(".msg").fadeOut(2000);
+       $(this).find(".msg").fadeOut(4000);
        
     $(this).find("a.mmajaxeditor").click(function(ev) {
         ev.preventDefault();
@@ -115,11 +115,16 @@
                new MMAjaxeditor(anchor);
     });
     
-    var doc = this.ownerDocument;
-    var loc = doc.location;
-    doc.location = loc;
+    $(document).ready(function() {
+        setTimeout(reload, 4500);
+    });
 }
 
+function reload() {
+    document.location.reload();
+}
+
+
 /*
  * Returns the parameters from a query string in an object. 
  */

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

Reply via email to