X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=js%2Feuphorik.js;h=a3b0acf28da31646d5e3d260ecc1abc43c776bd6;hb=23657a6f0b0c17bf0c8b813bd9ac9b1f1fbc35b8;hp=36a2f06de77d99f6d7eb95da3ddf217698cb1c0c;hpb=327c3bd99f586f3cf3af55f9adb10a71eb78cdd4;p=euphorik.git diff --git a/js/euphorik.js b/js/euphorik.js index 36a2f06..a3b0acf 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -1,4 +1,20 @@ // coding: utf-8 +// Copyright 2008 Grégory Burri +// +// This file is part of Euphorik. +// +// Euphorik is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Euphorik is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// 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 . /** * Contient la base javascript pour le site euphorik.ch. @@ -247,8 +263,8 @@ Pages.prototype.afficherPage = function(nomPage, forcerChargement) if (this.pageCourante != null && this.pageCourante.decharger) this.pageCourante.decharger() - $("#menu div").removeClass("courante") - $("#menu div." + nomPage).addClass("courante") + $("#menu li").removeClass("courante") + $("#menu li." + nomPage).addClass("courante") this.pageCourante = page $("#page").html(this.pageCourante.contenu()).removeClass().addClass(this.pageCourante.nom) @@ -1003,4 +1019,4 @@ $(document).ready( pages.ajouterPage(new PageAbout(client, formateur, util)) pages.afficherPage("minichat") } -) \ No newline at end of file +)