projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD LOGO + favicon
[euphorik.git]
/
js
/
pageMinichat.js
diff --git
a/js/pageMinichat.js
b/js/pageMinichat.js
index
637ff21
..
31d19ba
100755
(executable)
--- a/
js/pageMinichat.js
+++ b/
js/pageMinichat.js
@@
-413,7
+413,7
@@
Conversation.prototype.viderMessages = function()
* d'afficher les messages non-affichés.
* @param funClickExtract fonction (fun(numMess)) appellée lors du clic sur un bouton "extraire"
*/
* d'afficher les messages non-affichés.
* @param funClickExtract fonction (fun(numMess)) appellée lors du clic sur un bouton "extraire"
*/
-Conversation.prototype.flush = function(funClick
Extract, funClickLien
Conv)
+Conversation.prototype.flush = function(funClick
Ouvrir
Conv)
{
var thisConversation = this
{
var thisConversation = this
@@
-477,7
+477,7
@@
Conversation.prototype.flush = function(funClickExtract, funClickLienConv)
{
// FIXME : ya pas mieux ?
var racine = jQuery(event.target).text()
{
// FIXME : ya pas mieux ?
var racine = jQuery(event.target).text()
- funClick
Lien
Conv(parseInt(racine.substring(1, racine.length - 1), 36))
+ funClick
Ouvrir
Conv(parseInt(racine.substring(1, racine.length - 1), 36))
return false
}
)
return false
}
)
@@
-493,7
+493,7
@@
Conversation.prototype.flush = function(funClickExtract, funClickLienConv)
// extraction d'une conversation
if (jQuery(event.target).is(".extraire"))
{
// extraction d'une conversation
if (jQuery(event.target).is(".extraire"))
{
- funClick
Extract
(parseInt(idMess, 36))
+ funClick
OuvrirConv
(parseInt(idMess, 36))
return
}
return
}
@@
-757,20
+757,21
@@
Messages.prototype.flush = function(numConv)
var thisMessages = this
this.conversations[numConv].flush(
var thisMessages = this
this.conversations[numConv].flush(
- // fonction appelée lors de la demande d'extraction d'une conversation
- function(idMess)
- {
- if (thisMessages.client.ajouterConversation(idMess))
- thisMessages.rafraichirMessages(true)
- },
function(racine) // appelé lorsqu'un utilisateur click sur un lien vers une conversation
{
function(racine) // appelé lorsqu'un utilisateur click sur un lien vers une conversation
{
- if (thisMessages.client.ajouterConversation(racine))
- thisMessages.rafraichirMessages(true)
+ thisMessages.ouvrirConversation(racine)
}
)
}
}
)
}
+Messages.prototype.ouvrirConversation = function(racine)
+{
+ if (this.client.ajouterConversation(racine))
+ this.rafraichirMessages(true)
+ else
+ this.util.messageDialogue("Cette conversation est déjà ouverte")
+}
+
Messages.prototype.viderMessages = function()
{
// Obsolète
Messages.prototype.viderMessages = function()
{
// Obsolète