projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
REPORT de la branche 1.1 : 477->494
[euphorik.git]
/
js
/
pageStatique.js
diff --git
a/js/pageStatique.js
b/js/pageStatique.js
index
f5a4c2c
..
4580bf3
100644
(file)
--- a/
js/pageStatique.js
+++ b/
js/pageStatique.js
@@
-19,14
+19,13
@@
/**
* Correspond à une page html statique se nommant "<nom>.html" et se trouvant dans "/pages/".
*/
/**
* Correspond à une page html statique se nommant "<nom>.html" et se trouvant dans "/pages/".
*/
-euphorik.PageStatique = function(nom) {
+euphorik.PageStatique = function(nom
, communication
) {
this.nom = nom;
this.nom = nom;
+ this.communication = communication;
};
euphorik.PageStatique.prototype.contenu = function() {
};
euphorik.PageStatique.prototype.contenu = function() {
- var contenu = "";
- $.ajax({async: false, url: "pages/" + this.nom + ".html", success : function(page) { contenu += page; }});
- return contenu;
+ return this.communication.load("pages/" + this.nom + ".html");
};
euphorik.PageStatique.prototype.charger = function() {
};
euphorik.PageStatique.prototype.charger = function() {