X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat.js;h=d9dbde28faba32d336425c3b5456a59f63fb9a72;hp=da53627f888ef508f9cecacb511bd56d681e9357;hb=e93bc09b8f62b2018760255eb7678f995647eae1;hpb=650c44a784cabc8a1f2bd1daa7e5e61ccf74ca6f diff --git a/js/pageMinichat.js b/js/pageMinichat.js index da53627..d9dbde2 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -39,7 +39,7 @@ PageMinichat.prototype.contenu = function()
\

\ \ - \ + \ \ \ \ @@ -193,6 +193,12 @@ PageMinichat.prototype.envoyerMessage = function(pseudo, message) message = message.replace(this.regexMessageTagReplace, "") } + if (pseudo == conf.nickDefaut) + { + this.util.messageDialogue("Le pseudo ne peut pas être " + conf.nickDefaut) + return + } + message = message.trim() if (message == "") { @@ -726,16 +732,18 @@ Conversation.prototype.afficherConversation = function(id) { jq.removeClass("cache") switch (statut) - { + { + // "repondu" et "reponse" sont prioritaitres à "proprietaire" + // contrairement à la vue normale (sans mise en évidence d'une conversation) + case 3 : + jq.addClass("repondu") + break; + case 2 : + jq.addClass("reponse") + break; case 1 : jq.addClass("proprietaire") break; - case 2 : - jq.addClass("reponse") - break; - case 3 : - jq.addClass("repondu") - break; } } }