ADD infos bulles (pas fini, quelques bugs à corriger)
[euphorik.git] / js / pageMinichat.js
index 770fc42..45d7242 100755 (executable)
@@ -9,8 +9,8 @@
 // (at your option) any later version.\r
 //\r
 // Euphorik is distributed in the hope that it will be useful,\r
+// MERCHANTABILITY or FIAller à la première pageTNESS FOR A PARTICULAR PURPOSE.  See the\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
@@ -76,6 +76,8 @@ PageMinichat.prototype.charger = function()
          }
       )
    }
+   
+   this.util.infoBulle("Ouvrir la conversation liée au troll de la semaine", $("#trollCourant")) 
 
    // <smiles>
    $("body").append("<div id=\"smiles\"></div>")
@@ -381,6 +383,13 @@ function Conversation(num, util, formateur, client)
       </div>'
    )
    
+   this.util.infoBulle("Aller à la première page", $("#conversations #" + this.getId() + " .numPage"))
+   if (num != 0)
+   {
+      this.util.infoBulle("Créer un lien vers la conversation", $("#conversations #" + this.getId() + " .lien"))
+      this.util.infoBulle("Fermer la conversation", $("#conversations #" + this.getId() + " .fermer"))   
+   }
+   
    // enlève la mise en évidence pour la conversation
    $("#conversations #" + this.getId()).hover(
       function(){},
@@ -544,9 +553,6 @@ Conversation.prototype.flush = function(funClickOuvrirConv)
    if (nbMessagesAffiche > this.nbMessageMax)
       $("#conversations #" + this.getId() + " .message").slice(this.nbMessageMax, nbMessagesAffiche).empty()
    
-   
-   //.filter(function(){ return parseInt($(this).attr("id").substr(4), 36) > thisConversation.idDernierMessageAffiche })
-   
    var DOM = $(XHTML)
    DOM.each(
       function()
@@ -599,6 +605,8 @@ Conversation.prototype.flush = function(funClickOuvrirConv)
                function(){}
             )
          
+         thisConversation.util.infoBulle("Extraction de la conversation", $(".extraire", this))
+         
          $(this).click(
             function(event)
             {