-// coding: utf-8
-
-function PageProfile(client, formateur, util)
-{
- this.nom = "profile"
-
- this.client = client
- this.formateur = formateur
- this.util = util
-}
-
-PageProfile.prototype.contenu = function()
-{
- // pourquoi ?
- return ""
-}
-
-PageProfile.prototype.charger = function()
-{
- $("#page").html(this.getHTML())
-
- // en fonction du statut
- if (this.client.authentifie())
- this.chargerProfile()
- else
- this.chargerLogin()
-
- $("#page form#profile").submit(function(){return false})
-}
-
-PageProfile.prototype.chargerProfile = function()
-{ \r
- var thisPage = this\r
+// 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.PageProfile = function(client, formater, util) {\r
+ this.nom = "profile";\r
+ \r
+ this.client = client;\r
+ this.formater = formater;\r
+ this.util = util;\r
+};\r
+\r
+euphorik.PageProfile.prototype.contenu = function() {\r
+ // pourquoi ?\r
+ return "";\r
+};\r
+\r
+euphorik.PageProfile.prototype.charger = function() {\r
+ $("#page").html(this.getHTML());\r
+ \r
+ // en fonction du statut\r
+ if (this.client.authentifie()) {\r
+ this.chargerProfile();\r
+ } else {\r
+ this.chargerLogin();\r
+ }\r
+ \r
+ $("#page form#profile").submit(function(){ return false; });\r
+};\r
+\r
+euphorik.PageProfile.prototype.chargerProfile = function() { \r
+ var thisPage = this;\r
+ \r
+ $("form#profile input.login").val(this.client.login);\r
+ $("form#profile input.nick").val(this.client.nick);\r
+ $("form#profile input.email").val(this.client.email);\r
+ $("form#profile input#viewTooltips").attr("checked", this.client.viewTooltips);\r
+ $("form#profile input#viewTimes").attr("checked", this.client.viewTimes);\r