[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-29-ga2704c9
? sunnavy
sunnavy at bestpractical.com
Tue May 11 05:29:06 EDT 2010
The branch, 3.8-trunk has been updated
via a2704c9c71d8495f8ca549806c5c64b00a104f61 (commit)
from e58e7c98401184978eaee7e13d281591eaf646fc (commit)
Summary of changes:
share/html/NoAuth/js/ahah.js | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit a2704c9c71d8495f8ca549806c5c64b00a104f61
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue May 11 17:29:17 2010 +0800
fixed one ahah.js issue that occurs if there are more than 1 include pages: see bug #14296 for details
diff --git a/share/html/NoAuth/js/ahah.js b/share/html/NoAuth/js/ahah.js
index b10b271..5fcb47a 100644
--- a/share/html/NoAuth/js/ahah.js
+++ b/share/html/NoAuth/js/ahah.js
@@ -1,9 +1,12 @@
/*
% $r->content_type('application/x-javascript');
*/
-// Fetched from http://www.opendarwin.org/~drernie/src/ahah.js - No Copyright - Public Domain
+// originally Fetched from http://www.opendarwin.org/~drernie/src/ahah.js - No Copyright - Public Domain
+// a patch fetched from http://www.xfront.com/microformats/examples/ahah/example01/ahah.js - see http://issues.bestpractical.com/Ticket/Display.html?id=14296
+
function ahah(url, target, delay) {
// document.getElementById(target).innerHTML = 'Loading <a href="'+url+'">'+url +'</a>...';
+ var req;
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
@@ -20,7 +23,7 @@ function ahah(url, target, delay) {
}
if (req != undefined) {
- req.onreadystatechange = function() {ahahDone(url, target, delay);};
+ req.onreadystatechange = function() {ahahDone(req, url, target, delay);};
if ( use_get == 1 ) {
req.open("GET", url, true);
}
@@ -31,7 +34,7 @@ function ahah(url, target, delay) {
}
}
-function ahahDone(url, target, delay) {
+function ahahDone(req, url, target, delay) {
if (req.readyState == 4) { // only if req is "loaded"
if (req.status == 200) { // only if "OK"
document.getElementById(target).innerHTML = req.responseText;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list