Update of /var/cvs/contributions/didactor2/src/core/templates/content/js
In directory james.mmbase.org:/tmp/cvs-serv5625/js

Modified Files:
        open.jsp 
Log Message:
made it possible to explicit asynchronousity


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/templates/content/js


Index: open.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/templates/content/js/open.jsp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- open.jsp    19 Dec 2008 14:49:11 -0000      1.17
+++ open.jsp    8 Jan 2009 15:05:53 -0000       1.18
@@ -207,7 +207,7 @@
     scrollToTop();
 }
 
-function postContent(href, form) {
+function postContent(href, form, async) {
     loadIconOn();
     var params = {};
     $(form).find("textarea").each(function() {
@@ -220,7 +220,9 @@
             }
         });
 
-    $.ajax({url: href, type: "POST", dataType: "xml", data: params,
+    var a = async == null ? true : async;
+
+    $.ajax({url: href, type: "POST", async: a, dataType: "xml", data: params,
                 complete: function(res, status) {
                 if (status == "success") {
                     var contentEl = document.getElementById('contentFrame');
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to