// 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/>.
-
-euphorik.PageAbout = function(client, formateur, util) {
- this.nom = "about";
-
- this.client = client;
- this.formateur = formateur;
+// along with Euphorik. If not, see <http://www.gnu.org/licenses/>.\r
+\r
+euphorik.PageAbout = function(client, formater, util, communication) {\r
+ this.name = "about";\r
+ \r
+ this.client = client;\r
+ this.formater = formater;\r
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}", "<a href=\"" + email+ "\">" + email + "</a>").replace("{EMAIL_LIEN}", email);
-};
-
-euphorik.PageAbout.prototype.charger = function() {
-};
+ 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