http://leandrovieira.com/projects/jquery/lightbox/
[euphorik.git] / js / pageMinichat.js
index 94f6e7c..aeda772 100755 (executable)
@@ -515,10 +515,6 @@ Conversation.prototype.flush = function(funClickOuvrirConv)
       
    jQuery("#conversations #" + this.getId()).prepend(XHTML)
    
-   // mise à jour des images (LightBox) après l'ajout de message
-   if (myLightbox != null)
-      myLightbox.updateImageList()
-   
    // enlève les messages exedentaires
    var nbMessagesAffiche = jQuery("#conversations #" + this.getId() + " .message").size()
    
@@ -539,6 +535,8 @@ Conversation.prototype.flush = function(funClickOuvrirConv)
             }
          )
          
+         $("a[@rel*=lightbox]").lightBox()
+         
          // les outils de bannissement (uniquement pour les ekMaster)
          if (thisConversation.client.ekMaster)
             jQuery(".pseudo", this).hover(