From: Greg Burri Date: Wed, 15 Oct 2008 13:46:17 +0000 (+0000) Subject: REPORT de la branche 1.1 X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=commitdiff_plain;h=0cca28444881b1a405525b10960915a638936fdd;hp=b17c02fb507f6841f74b5fe21399766a51710367 REPORT de la branche 1.1 --- diff --git a/VERSION b/VERSION index 867e524..bf6d67a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0 \ No newline at end of file +1.2.0 diff --git a/js/euphorik.js b/js/euphorik.js index 4d0d302..c1253b9 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -29,8 +29,8 @@ $(document).ready( var util = new euphorik.Util(formateur); var communication = new euphorik.Communication( function(data) { util.messageDialogue(data.error_message); }, - function() { $("#waitbar").show(); }, - function() { $("#waitbar").hide(); } + function() { util.showWaitBar(); }, + function() { util.hideWaitBar(); } ); var client = new euphorik.Client(util, communication); var pages = new euphorik.Pages(fragment, communication); diff --git a/js/pageMinichat/conversations.js b/js/pageMinichat/conversations.js index 94236c1..378c2a2 100644 --- a/js/pageMinichat/conversations.js +++ b/js/pageMinichat/conversations.js @@ -371,6 +371,8 @@ euphorik.Conversations.prototype.rafraichirMessages = function(vider) { conv.idDernierMessageAffiche = 0; }); } + + thisConversations.util.showWaitBar(); // pour faire patienter le user :) this.comet.waitEvent( function() { return thisConversations.getJSONrafraichirMessages(); }, @@ -387,7 +389,8 @@ euphorik.Conversations.prototype.rafraichirMessages = function(vider) { $("#trollCourant .troll a[@rel*=lightbox]").lightBox(); }, "new_messages" : - function(data) { + function(data) { + if (vider) { thisConversations.viderMessages(); } @@ -404,7 +407,9 @@ euphorik.Conversations.prototype.rafraichirMessages = function(vider) { thisConversations.afficherMessagesRepondConversations(); } - vider = false; + vider = false; + + thisConversations.util.hideWaitBar(); } } ); diff --git a/js/util.js b/js/util.js index 4c9bd6a..7ba8e60 100644 --- a/js/util.js +++ b/js/util.js @@ -117,6 +117,16 @@ euphorik.Util.prototype.afficherBoite = function(boite, cible, positionX, positi }; euphorik.Util.positionBulleType = {haut : 0, droite : 1, bas : 2, gauche : 3}; + +/** + * Affiche ou cache la barre d'attente. + */ +euphorik.Util.prototype.showWaitBar = function() { + $("#waitbar").show(); +}; +euphorik.Util.prototype.hideWaitBar = function() { + $("#waitbar").hide(); +}; /** * Affiche un info bulle lorsque le curseur survole l'élément donné. diff --git a/tools/tools.rb b/tools/tools.rb index 2992eb6..5d9f40b 100644 --- a/tools/tools.rb +++ b/tools/tools.rb @@ -79,7 +79,7 @@ class Version } # les fichiers HTML dans lesquels mettre à jour la version @fichiers = ['/pages/about.html'] - @balise = /().*?(<\/span>)/ + @balise = /().*?(<\/a>)/ end # met à jour la version dans les fichiers @fichiers @@ -89,7 +89,7 @@ class Version lines = IO.readlines(fichier) File.open(fichier, 'w') {|io| lines.each{|l| - io.write(l.sub(@balise){|m| $1 + @version + $2}) + io.write(l.sub(@balise){|m| $1 + @version + $2 + @version + $3}) } } }