ADD licence au début des fichiers js
[euphorik.git] / js / euphorik.js
index 36a2f06..a3b0acf 100755 (executable)
@@ -1,4 +1,20 @@
 // 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
 /**\r
   * Contient la base javascript pour le site euphorik.ch.\r
@@ -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
+)