REPORT de la branche 1.1 : 477->494
[euphorik.git] / js / pageAbout.js
index 64f9bd3..733f77e 100644 (file)
@@ -1,22 +1,35 @@
-// coding: utf-8
-
-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}", "<a href=\"" + email+ "\">" + email + "</a>").replace("{EMAIL_LIEN}", email)
-}
-
-PageAbout.prototype.charger = function()
-{
-}
+// coding: utf-8\r
+// Copyright 2008 GrĂ©gory Burri\r
+//\r
+// This file is part of Euphorik.\r
+//\r
+// Euphorik is free software: you can redistribute it and/or modify\r
+// it under the terms of the GNU General Public License as published by\r
+// the Free Software Foundation, either version 3 of the License, or\r
+// (at your option) any later version.\r
+//\r
+// Euphorik is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+// GNU General Public License for more details.\r
+//\r
+// You should have received a copy of the GNU General Public License\r
+// along with Euphorik.  If not, see <http://www.gnu.org/licenses/>.\r
+\r
+euphorik.PageAbout = function(client, formateur, util, communication) {\r
+   this.nom = "about";\r
+   \r
+   this.client = client;\r
+   this.formateur = formateur;\r
+   this.util = util;
+   this.communication = communication;\r
+};\r
+\r
+euphorik.PageAbout.prototype.contenu = function() {\r
+   var contenu = this.communication.load("pages/about.html");   \r
+   var email = this.util.rot13("znvygb:tert.oheev@tznvy.pbz");\r
+   return contenu.replace("{EMAIL}", "<a href=\"" + email+ "\">" + email + "</a>").replace("{EMAIL_LIEN}", email);\r
+};\r
+\r
+euphorik.PageAbout.prototype.charger = function() {\r
+};\r