X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;ds=sidebyside;f=js%2Feuphorik.js;h=e3bd7200111b79fde0aea76e7648d04d4fae3fd7;hb=d6dcd0fd8af56bd4791aa4e621c2e5058033c37a;hp=107a5c017939ae15deda6d667f02ba2821ed7cda;hpb=27c4a5ac9000ca933f28abfedbf9607f73619615;p=euphorik.git
diff --git a/js/euphorik.js b/js/euphorik.js
index 107a5c0..e3bd720 100755
--- a/js/euphorik.js
+++ b/js/euphorik.js
@@ -34,14 +34,14 @@ $(document).ready(
);
var client = new euphorik.Client(util, communication);
var pages = new euphorik.Pages(fragment, communication);
-
- // connexion vers le serveur (utilise un cookie qui traine)
- client.connexionCookie();
+
+ // Client authentification with the cookie information (if it exists).
+ client.connectionCookie();
$("#menuCss").change(function() { client.setCss("styles/" + $("option:selected", this).attr("value") + "/euphorik.css"); });
// FIXME : doesn't work under Opera
- // voir : http://dev.jquery.com/ticket/2892#preview
+ // see : http://dev.jquery.com/ticket/2892#preview
$(window).unload(function() { client.flush(); });
$("#menu .minichat").click(function() { pages.displayPage("minichat"); });
@@ -51,7 +51,7 @@ $(document).ready(
util.messageDialog("Are you sure you want to log out?", euphorik.Util.messageType.question,
{
"Yes" : function() {
- client.deconnexion();
+ client.disconnect();
pages.displayPage("minichat", true);
},
"No" : function() {}
@@ -63,15 +63,15 @@ $(document).ready(
// TODO : simplification : such link[1] should be created and automatically open the right page without
// explicitly add a page.
- // [1] : Conditions d'utilisation
- $("#footer .conditions").click(function(){ pages.displayPage("conditions_utilisation"); });
+ // [1] : Terms of use
+ $("#footer .termsOfUse").click(function(){ pages.displayPage("terms_of_use"); });
pages.addPage(new euphorik.PageMinichat(client, formater, util, communication), true);
pages.addPage(new euphorik.PageAdmin(client, formater, util, communication));
pages.addPage(new euphorik.PageProfile(client, formater, util));
pages.addPage(new euphorik.PageRegister(client, formater, util));
pages.addPage(new euphorik.PageAbout(client, formater, util, communication));
- pages.addPage("conditions_utilisation");
+ pages.addPage("terms_of_use");
pages.displayPage(); // display the default page
}