X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=inline;f=js%2FpageAbout.js;h=7da55a2eaaa5217ce450902f92cb754f3c39b220;hb=88b190671883f4027779600b1dfa6bc68fa89510;hp=362f857b7817983455acca6f3e46975ccf25f686;hpb=cdff108e3b859493cff8e3f37fc8b52cb20d75d5;p=euphorik.git
diff --git a/js/pageAbout.js b/js/pageAbout.js
index 362f857..7da55a2 100644
--- a/js/pageAbout.js
+++ b/js/pageAbout.js
@@ -14,23 +14,22 @@
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
-// along with Euphorik. If not, see .
-
-euphorik.PageAbout = function(client, formateur, util) {
- this.nom = "about";
-
- this.client = client;
- this.formateur = formateur;
+// along with Euphorik. If not, see .
+
+euphorik.PageAbout = function(client, formater, util, communication) {
+ this.nom = "about";
+
+ this.client = client;
+ this.formater = formater;
this.util = util;
-};
-
-euphorik.PageAbout.prototype.contenu = function() {
- var contenu = "";
- $.ajax({async: false, url: "pages/about.html", success : function(page) { contenu += page; }});
-
- var email = this.util.rot13("znvygb:tert.oheev@tznvy.pbz");
- return contenu.replace("{EMAIL}", "" + email + "").replace("{EMAIL_LIEN}", email);
-};
-
-euphorik.PageAbout.prototype.charger = function() {
-};
+ this.communication = communication;
+};
+
+euphorik.PageAbout.prototype.contenu = function() {
+ var contenu = this.communication.load("pages/about.html");
+ var email = this.util.rot13("znvygb:tert.oheev@tznvy.pbz");
+ return contenu.replace("{EMAIL}", "" + email + "").replace("{EMAIL_LIEN}", email);
+};
+
+euphorik.PageAbout.prototype.charger = function() {
+};