projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MOD avancement dans l'extraction d'une conversation entière
[euphorik.git]
/
js
/
euphorik.js
diff --git
a/js/euphorik.js
b/js/euphorik.js
index
0f1eb39
..
4e70844
100755
(executable)
--- a/
js/euphorik.js
+++ b/
js/euphorik.js
@@
-560,7
+560,7
@@
Client.prototype.resetDonneesPersonnelles = function()
this.ekMaster = false
// les conversations, une conversation est un objet possédant les attributs suivants :
this.ekMaster = false
// les conversations, une conversation est un objet possédant les attributs suivants :
- // - r
acine
(entier)
+ // - r
oot
(entier)
// - page (entier)
this.conversations = new Array()
}
// - page (entier)
this.conversations = new Array()
}
@@
-624,9
+624,8
@@
Client.prototype.ajouterConversation = function(racine)
for (var i = 0; i < this.conversations.length; i++)
if (this.conversations[i].root == racine)
return false
for (var i = 0; i < this.conversations.length; i++)
if (this.conversations[i].root == racine)
return false
-
- this.conversations.push({root : racine, page : 1})
+ this.conversations.push({root : racine, page : 1})
if (this.autoflush) this.flush(true)
return true
if (this.autoflush) this.flush(true)
return true
@@
-699,7
+698,6
@@
Client.prototype.getJSONProfile = function()
"nick_format" : this.nickFormat,
"view_times" : this.viewTimes,
"view_tooltips" : this.viewTooltips,
"nick_format" : this.nickFormat,
"view_times" : this.viewTimes,
"view_tooltips" : this.viewTooltips,
- "main_page" : this.pagePrincipale < 1 ? 1 : this.pagePrincipale,
"conversations" : this.getJSONConversations()
}
}
"conversations" : this.getJSONConversations()
}
}
@@
-846,7
+844,7
@@
Client.prototype.chargerDonnees = function(data)
this.viewTooltips = data["view_tooltips"]
// la page de la conversation principale
this.viewTooltips = data["view_tooltips"]
// la page de la conversation principale
- this.pagePrincipale =
data["main_page"] == undefined ? 1 : data["main_page"]
+ this.pagePrincipale =
1
// les conversations
this.conversations = data["conversations"]
// les conversations
this.conversations = data["conversations"]
@@
-944,7
+942,7
@@
Client.prototype.majCssSelectionee = function()
{
// extraction du numéro de la css courante
var numCssCourante = this.css.match(/^.*?\/(\d)\/.*$/)
{
// extraction du numéro de la css courante
var numCssCourante = this.css.match(/^.*?\/(\d)\/.*$/)
- if (numCssCourante[1] != undefined)
+ if (numCssCourante
!= null && numCssCourante
[1] != undefined)
{
$("#menuCss option").removeAttr("selected")
$("#menuCss option[value=" + numCssCourante[1]+ "]").attr("selected", "selected")
{
$("#menuCss option").removeAttr("selected")
$("#menuCss option[value=" + numCssCourante[1]+ "]").attr("selected", "selected")