X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=js%2FpageAbout.js;h=733f77e44b491f02db3155b8cf240435175f4936;hb=b17c02fb507f6841f74b5fe21399766a51710367;hp=9d15886bc51facc10569738a14e41254592fc1b8;hpb=877597872b6660f717aaf54aa1f3001df59b501d;p=euphorik.git
diff --git a/js/pageAbout.js b/js/pageAbout.js
index 9d15886..733f77e 100644
--- a/js/pageAbout.js
+++ b/js/pageAbout.js
@@ -14,25 +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 .
-
-function PageAbout(client, formateur, util)
-{
- this.nom = "about"
-
- this.client = client
- this.formateur = formateur
- this.util = util
-}
-
-PageAbout.prototype.contenu = function()
-{
- var contenu = ""
- jQuery.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)
-}
-
-PageAbout.prototype.charger = function()
-{
-}
+// along with Euphorik. If not, see .
+
+euphorik.PageAbout = function(client, formateur, util, communication) {
+ this.nom = "about";
+
+ this.client = client;
+ this.formateur = formateur;
+ this.util = util;
+ 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() {
+};