From 8d3a61b65dd4976eb79a923c4a79ab55ec05c6b5 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Aug 2011 18:49:29 +0300 Subject: [PATCH] changed Graphme app --- .../library/interactive/Graphme.wgt/Grapheur.xhtml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/library/interactive/Graphme.wgt/Grapheur.xhtml b/resources/library/interactive/Graphme.wgt/Grapheur.xhtml index 14b7a9e5..7092abf5 100644 --- a/resources/library/interactive/Graphme.wgt/Grapheur.xhtml +++ b/resources/library/interactive/Graphme.wgt/Grapheur.xhtml @@ -148,8 +148,15 @@ $("#borneXGauche").val(sankore.preference("xAxisFrom", "-5")); $("#borneXDroite").val(sankore.preference("xAxisTo", "5")); $("#borneYGauche").val(sankore.preference("yAxisFrom", "-5")); - $("#borneYDroite").val(sankore.preference("yAxisTo", "5")); + $("#borneYDroite").val(sankore.preference("yAxisTo", "5")); + var tempArray; + if(sankore.preference("graphmeHistory","")) + tempArray = sankore.preference("graphmeHistory","").split(","); + if(sankore.preference("graphmeHistory","")){ + for(i in tempArray) + evaluer(tempArray[i]); + } actualiserGraph(); loadingFlag = true; } @@ -225,6 +232,9 @@ sankore.setPreference("offsetDiagrammX", $("#inputDecalageX").val()); sankore.setPreference("offsetDiagrammY", $("#inputDecalageY").val()); sankore.setPreference("accuracyGraph", $("#inputPrecision").val()); + + if(historique.length) + sankore.setPreference("graphmeHistory", historique.toString()); } }); });