X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat.js;h=48ab5befc4d051596b0c2d223ce06bffbb3c4c3c;hp=10bc99905efff1c34b2638cfe3b9e2002b093ded;hb=2c27419e5ff0d1d064cf4d7e1417c469c82aef34;hpb=cdc1ad807b840d13d2968d824045ec8da39bcb1d diff --git a/js/pageMinichat.js b/js/pageMinichat.js index 10bc999..48ab5be 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -63,6 +63,7 @@ PageMinichat.prototype.charger = function() this.util.outilsBan = $( '' + '

' + + '

' + 'Ban de 3 jours' + 'Ban de 15min' + 'Avertissement' + @@ -87,26 +88,11 @@ PageMinichat.prototype.charger = function() $(this).click( function(event) { - thisPage.util.replaceSelection($("form input.message")[0], thisPage.formateur.smiles[$(this).attr("class")][0].source.replace(/\\/g, "")) - } - ) - .hover( - function() - { - $(this).animate( - { - opacity: 1 - }, 200 - ) - }, - function() - { - $(this).animate( - { - opacity: opacityBase - }, 200 - ) + thisPage.util.replaceSelection($("form#posterMessage input.message")[0], thisPage.formateur.smiles[$(this).attr("class")][0].source.replace(/\\/g, "")) } + ).hover( + function() { $(this).animate({opacity: 1}, 200) }, + function() { $(this).animate({opacity: opacityBase}, 200) } ) } ) @@ -807,7 +793,7 @@ Messages.prototype.ajouterMessage = function(element, numConversation) function(num) // insertion du lien vers la conversation { thisPage.util.replaceSelection( - $("form input.message")[0], + $("form#posterMessage input.message")[0], "{" + thisMessages.client.conversations[num-1].root.toString(36) + "}" ) } @@ -878,7 +864,7 @@ Messages.prototype.ajusterLargeurConversations = function() var largeurPourcent = (100 / this.conversations.length) // le "- 0.01" evite que IE se chie dessus lamentablement et affiche les conversations les unes au dessus des autres if($.browser["msie"]) - largeurPourcent -= 0.01 + largeurPourcent -= 0.05 $("#conversations .conversation").css("width", largeurPourcent + "%") }