projects
/
euphorik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b07219
)
Version 1.1.4 (normalement fin de la branche 1.1)
author
Greg Burri
<greg.burri@gmail.com>
Mon, 13 Oct 2008 17:55:11 +0000
(17:55 +0000)
committer
Greg Burri
<greg.burri@gmail.com>
Mon, 13 Oct 2008 17:55:11 +0000
(17:55 +0000)
VERSION
patch
|
blob
|
history
js/euphorik.js
patch
|
blob
|
history
js/pageMinichat/conversations.js
patch
|
blob
|
history
js/util.js
patch
|
blob
|
history
pages/about.html
patch
|
blob
|
history
tools/tools.rb
patch
|
blob
|
history
diff --git
a/VERSION
b/VERSION
index
9c1218c
..
1b87bcd
100644
(file)
--- a/
VERSION
+++ b/
VERSION
@@
-1
+1
@@
-1.1.
3
\ No newline at end of file
+1.1.
4
\ No newline at end of file
diff --git
a/js/euphorik.js
b/js/euphorik.js
index
4d0d302
..
c1253b9
100755
(executable)
--- 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); },
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);
);
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
(file)
--- a/
js/pageMinichat/conversations.js
+++ b/
js/pageMinichat/conversations.js
@@
-371,6
+371,8
@@
euphorik.Conversations.prototype.rafraichirMessages = function(vider) {
conv.idDernierMessageAffiche = 0;
\r
});
\r
}
\r
conv.idDernierMessageAffiche = 0;
\r
});
\r
}
\r
+
+ thisConversations.util.showWaitBar(); // pour faire patienter le user :)
\r
this.comet.waitEvent(
\r
function() { return thisConversations.getJSONrafraichirMessages(); },
\r
\r
this.comet.waitEvent(
\r
function() { return thisConversations.getJSONrafraichirMessages(); },
\r
@@
-387,7
+389,8
@@
euphorik.Conversations.prototype.rafraichirMessages = function(vider) {
$("#trollCourant .troll a[@rel*=lightbox]").lightBox();
\r
},
\r
"new_messages" :
\r
$("#trollCourant .troll a[@rel*=lightbox]").lightBox();
\r
},
\r
"new_messages" :
\r
- function(data) {
\r
+ function(data) {
+
\r
if (vider) {
\r
thisConversations.viderMessages();
\r
}
\r
if (vider) {
\r
thisConversations.viderMessages();
\r
}
\r
@@
-404,7
+407,9
@@
euphorik.Conversations.prototype.rafraichirMessages = function(vider) {
thisConversations.afficherMessagesRepondConversations();
\r
}
\r
\r
thisConversations.afficherMessagesRepondConversations();
\r
}
\r
\r
- vider = false;
\r
+ vider = false;
+
+ thisConversations.util.hideWaitBar();
\r
}
\r
}
\r
);
\r
}
\r
}
\r
);
\r
diff --git
a/js/util.js
b/js/util.js
index
800d80b
..
7ba8e60
100644
(file)
--- a/
js/util.js
+++ b/
js/util.js
@@
-19,7
+19,7
@@
/*jslint laxbreak:true */
\r
\r
/**
\r
/*jslint laxbreak:true */
\r
\r
/**
\r
- * Cet
te classe
regroupe des fonctions utilitaires (helpers) permettant notamment de :
\r
+ * Cet
objet
regroupe des fonctions utilitaires (helpers) permettant notamment de :
\r
* - afficher une boite de message
\r
* - afficher une bulle d'aide lié à un élément
\r
* - manipuler le curseur et réaliser des sélections sur des zones de saisie (<input>)
\r
* - afficher une boite de message
\r
* - afficher une bulle d'aide lié à un élément
\r
* - manipuler le curseur et réaliser des sélections sur des zones de saisie (<input>)
\r
@@
-117,6
+117,16
@@
euphorik.Util.prototype.afficherBoite = function(boite, cible, positionX, positi
};
\r
\r
euphorik.Util.positionBulleType = {haut : 0, droite : 1, bas : 2, gauche : 3};
\r
};
\r
\r
euphorik.Util.positionBulleType = {haut : 0, droite : 1, bas : 2, gauche : 3};
\r
+
+/**
+ * Affiche ou cache la barre d'attente.
+ */
+euphorik.Util.prototype.showWaitBar = function() {
+ $("#waitbar").show();
+};
+euphorik.Util.prototype.hideWaitBar = function() {
+ $("#waitbar").hide();
+};
\r
/**
\r
* Affiche un info bulle lorsque le curseur survole l'élément donné.
\r
\r
/**
\r
* Affiche un info bulle lorsque le curseur survole l'élément donné.
\r
diff --git
a/pages/about.html
b/pages/about.html
index
256159b
..
dbd98f8
100644
(file)
--- a/
pages/about.html
+++ b/
pages/about.html
@@
-1,7
+1,7
@@
<!-- encoding: utf-8 -->
\r
\r
<h1>euphorik.ch</h1>
\r
<!-- encoding: utf-8 -->
\r
\r
<h1>euphorik.ch</h1>
\r
-<p>Version : <
span class="version">1.1.3</span
></p>
\r
+<p>Version : <
a href="http://dev.euphorik.ch/repositories/browse/euk/tags/1.1.4" class="version">1.1.4</a
></p>
\r
<p>Auteur : <a href="{EMAIL_LIEN}">GBurri</a></p>
\r
\r
<h2>FAQ</h2>
\r
<p>Auteur : <a href="{EMAIL_LIEN}">GBurri</a></p>
\r
\r
<h2>FAQ</h2>
\r
diff --git
a/tools/tools.rb
b/tools/tools.rb
index
d9f6547
..
8b14954
100644
(file)
--- 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']
}
# les fichiers HTML dans lesquels mettre à jour la version
@fichiers = ['/pages/about.html']
- @balise = /(<
span.+?class.*?=.*?"version".*?>).*?(<\/span
>)/
+ @balise = /(<
a.+?href=".*?\/tags\/).*?(".+?class.*?=.*?"version".*?>).*?(<\/a
>)/
end
# met à jour la version dans les fichiers @fichiers
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|
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
})
}
}
}
}
}
}