projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Many UTF-8 fixes:
[platal.git]
/
htdocs
/
javascript
/
ajax.js
diff --git
a/htdocs/javascript/ajax.js
b/htdocs/javascript/ajax.js
index
8db2aef
..
e274892
100644
(file)
--- a/
htdocs/javascript/ajax.js
+++ b/
htdocs/javascript/ajax.js
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2003-200
6
Polytechnique.org *
+ * Copyright (C) 2003-200
7
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-35,7
+35,7
@@
Ajax = {
}
}
if (Ajax.xml_client == null) {
}
}
if (Ajax.xml_client == null) {
- alert("Ton client ne supporte pas Ajax, n
écessaire pour certaines fonctionalité
s de cette page");
+ alert("Ton client ne supporte pas Ajax, n
écessaire pour certaines fonctionalité
s de cette page");
}
}
Ajax.init = true;
}
}
Ajax.init = true;
@@
-47,12
+47,16
@@
Ajax = {
if (Ajax.xml_client == null) {
return true;
}
if (Ajax.xml_client == null) {
return true;
}
- Ajax.xml_client.
onreadystatechange =
-
function()
+ Ajax.xml_client.
abort();
+
Ajax.xml_client.onreadystatechange =
function()
{
if(Ajax.xml_client.readyState == 4) {
if (Ajax.xml_client.status == 200) {
{
if(Ajax.xml_client.readyState == 4) {
if (Ajax.xml_client.status == 200) {
- document.getElementById(obj).innerHTML = Ajax.xml_client.responseText;
+ if (obj != null) {
+ document.getElementById(obj).innerHTML = Ajax.xml_client.responseText;
+ }
+ } else if (Ajax.xml_client.status == 403) {
+ window.location.reload();
}
}
};
}
}
};
@@
-62,3
+66,4
@@
Ajax = {
}
}
}
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: