cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r329858 - /cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/resources/js/cocoon-portal.js
Date Mon, 31 Oct 2005 17:05:04 GMT
Author: cziegeler
Date: Mon Oct 31 09:04:55 2005
New Revision: 329858

URL: http://svn.apache.org/viewcvs?rev=329858&view=rev
Log:
Fix script

Modified:
    cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/resources/js/cocoon-portal.js

Modified: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/resources/js/cocoon-portal.js
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/resources/js/cocoon-portal.js?rev=329858&r1=329857&r2=329858&view=diff
==============================================================================
--- cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/resources/js/cocoon-portal.js
(original)
+++ cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/resources/js/cocoon-portal.js
Mon Oct 31 09:04:55 2005
@@ -13,13 +13,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-if (typeof cocoon == "undefined") cocoon = {};
-
 cocoon.portal = {};
 
 cocoon.portal.process = function(uri) {
   var req = cocoon.ajax.newXMLHttpRequest();
-  req.open("GET", uri + "&cocoon-ajax=true");
+  req.open("GET", uri + "&cocoon-ajax=true");
   req.onreadystatechange = function() {
     if (req.readyState == 4) {
       cocoon.portal.handleBrowserUpdate(req);
@@ -51,7 +49,7 @@
          return;
        }
     
-       var newElement = cocoon.ajax.DOMUtils.importNode(element, document);
+       var newElement = cocoon.ajax.DOMUtils.importNode(content, document);
         
        // Warn: it's replace(new, old)!!
        oldElement.parentNode.replaceChild(newElement, oldElement);
@@ -60,6 +58,6 @@
      }
      updater.processResponse(doc, req);
   } else {
-      cocoon.ajax.BrowserUpdater.handleError("Request failed - status=" + req.status, req);
+     cocoon.ajax.BrowserUpdater.handleError("Request failed - status=" + req.status, req);
   }
 }



Mime
View raw message