From: Greg Burri Date: Sun, 29 Jun 2008 10:13:20 +0000 (+0000) Subject: FIX problème de mise à jour du profile X-Git-Tag: 1.1.0~106 X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=e2fc8a1a3dd118b714a2ea55daf1829fa1b98649;hp=30d42cfc83fbf3ebf24dec3e750257b3f174f290 FIX problème de mise à jour du profile FIX bug de mise en évidence d'une conversation --- diff --git a/css/1/pageMinichat.css b/css/1/pageMinichat.css index a352ff9..539eb3f 100755 --- a/css/1/pageMinichat.css +++ b/css/1/pageMinichat.css @@ -288,7 +288,6 @@ #page.minichat div.message.ekMasterlight .pseudo { color: #f0df95 } - #page.minichat div.message.ekMasterheavy .pseudo { color: #fcd82f; padding-left: 14px; diff --git a/css/2/euphorik.css b/css/2/euphorik.css index df54431..22a533f 100755 --- a/css/2/euphorik.css +++ b/css/2/euphorik.css @@ -1,28 +1,28 @@ /* coding: utf-8 */ - + @import url(pageMinichat.css); -@import url(pageAdmin.css); +@import url(pageAdmin.css); @import url(pageProfileRegister.css); @import url(pageAbout.css); - -* { - padding: 0px; - margin: 0px; -} - -body { - font-family: sans-serif; + +* { + padding: 0px; + margin: 0px; +} + +body { + font-family: monospace; font-size: 12px; - color: #EEEEEE; - background-color: #DFDFDF; - background-image: url(../../img/css2/fond.png) -} - -#container { - height: auto; - margin-left: 10px; - margin-right: 10px; - margin-top: 40px; + color: #EEEEEE; + background-color: #DFDFDF; + background-image: url(../../img/css2/fond.png) +} + +#container { + height: auto; + margin-left: 10px; + margin-right: 10px; + margin-top: 40px; } /***** Menu *****/ @@ -106,7 +106,7 @@ ul#menu { position: absolute; top: 20px; left: 4px; -} +} /***** Le pied de page *****/ #footer { @@ -120,18 +120,18 @@ ul#menu { } #footer span{ margin-right: 10px; -} +} -/***** La boite d'information (s'apparente à une MessageBox) *****/ +/***** La boite d'information (s'apparente à une MessageBox) *****/ div#info { - text-align: center; - width:100%; - position: fixed; - left: 0px; - top: 0px; + text-align: center; + width:100%; + position: fixed; + left: 0px; + top: 0px; background-color: #000000; - border-bottom: 1px solid #aeaeae; - z-index: 20; + border-bottom: 1px solid #aeaeae; + z-index: 20; } div#info div.fermer { float:right; @@ -189,9 +189,9 @@ div#info .boutons div:hover { padding: 3px 6px; } -/***** Le faux captcha *****/ -.captcha { - display:none +/***** Le faux captcha *****/ +.captcha { + display:none } /***** Les formulaires *****/ @@ -213,18 +213,18 @@ form input[readonly] { background-color: #484e46 } -/***** Les liens *****/ -.lien, a { +/***** Les liens *****/ +.lien, a { text-decoration: none; - color: #7664ff; + color: #7664ff; } .lien { cursor: pointer; -} -a:link, a:visited { - color: #7664ff; -} -.lien:hover, .lien:active, a:hover, a:active { - color: #ffad0f; -} - +} +a:link, a:visited { + color: #7664ff; +} +.lien:hover, .lien:active, a:hover, a:active { + color: #ffad0f; +} + diff --git a/css/2/pageMinichat.css b/css/2/pageMinichat.css index f0e4785..bf27f96 100755 --- a/css/2/pageMinichat.css +++ b/css/2/pageMinichat.css @@ -221,9 +221,14 @@ font-weight: bold; color: #76ff33; } -#page.minichat div.message.ekMaster .pseudo { +#page.minichat div.message.ekMasterlight .pseudo { color: #ffffff; } +#page.minichat div.message.ekMasterheavy .pseudo { + color: #ffffff; + text-decoration: underline +} + #page.minichat div.message .pseudo .login { margin-left: 2px; font-size: 8px; diff --git a/doc/graphiques/maquette_1.svg b/doc/graphiques/maquette_1.svg index f1ba88e..082335c 100644 --- a/doc/graphiques/maquette_1.svg +++ b/doc/graphiques/maquette_1.svg @@ -31,7 +31,7 @@ inkscape:pageshadow="2" inkscape:zoom="2.0000001" inkscape:cx="261.23852" - inkscape:cy="932.02611" + inkscape:cy="972.02611" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" @@ -556,8 +556,8 @@ style="opacity:0.75;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;display:inline;filter:url(#filter5374)" /> diff --git a/js/euphorik.js b/js/euphorik.js index 7e611db..8518495 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -602,7 +602,8 @@ Client.prototype.resetDonneesPersonnelles = function() // les conversations, une conversation est un objet possédant les attributs suivants : // - root (entier) // - page (entier) - this.conversations = new Array() + // - reduit (bool) + this.conversations = [] } Client.prototype.setCss = function(css) @@ -665,7 +666,7 @@ Client.prototype.ajouterConversation = function(racine) if (this.conversations[i].root == racine) return false - this.conversations.push({root : racine, page : 1}) + this.conversations.push({root : racine, page : 1, reduit : false}) if (this.autoflush) this.flush(true) return true diff --git a/js/pageMinichat.js b/js/pageMinichat.js index 574dedd..8dc7b00 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -98,7 +98,7 @@ PageMinichat.prototype.charger = function() { var opacityBase = $(this).css("opacity") $(this).click( - function(event) + function() { thisPage.util.replaceSelection($("form#posterMessage input.message")[0], thisPage.formateur.smiles[$(this).attr("class")][0].source.replace(/\\/g, "")) } @@ -355,21 +355,24 @@ Message.prototype.getConversation = function(messages) if (messages.messages[i].repondA.hasOwnProperty(this.id)) messagesEnEvidence[messages.messages[i].id] = 2 - var premierNiveau = true - var f = function(tabIds) + // parcours en + var f = function(tabIds, premierNiveau) { for(var id in tabIds) { + // si le message (id) a déjà été traité + if (messagesEnEvidence[id] != undefined && !premierNiveau) + continue + var message = messages.messagesParId[id] if (message != undefined) { messagesEnEvidence[id] = premierNiveau ? 3 : (message.auteurId == thisMessage.auteurId ? 1 : 0) - premierNiveau = false - f (message.repondA) + f (message.repondA, false) } } } - f(this.repondA) + f(this.repondA, true) return messagesEnEvidence } diff --git a/modules/erl/euphorik_protocole.erl b/modules/erl/euphorik_protocole.erl index 3f9d7a1..dbad874 100755 --- a/modules/erl/euphorik_protocole.erl +++ b/modules/erl/euphorik_protocole.erl @@ -127,7 +127,7 @@ profile( ) -> % décomposition de la strucure JSON Conversations = lists:foldr( - fun({struc, [{root, Racine}, {minimized, Reduit}]}, A) -> + fun({struct, [{root, Racine}, {minimized, Reduit}]}, A) -> % virage des messages qui n'existent pas Message_exite = euphorik_bd:message_existe(Racine), if Message_exite -> diff --git a/nbproject/private/private.xml b/nbproject/private/private.xml index da5c656..1e0dcc1 100644 --- a/nbproject/private/private.xml +++ b/nbproject/private/private.xml @@ -1,11 +1,15 @@ + + modules/erl/euphorik_protocole.erl + 677 + js/pageMinichat.js 237 - 906 - 1155 + 907 + 1156