Revision cef7341f
[#1603] Graphe qui disparait apres un refresh
Lorsqu'il n'y a qu'un seul graphe chargé dans VigiGraph et qu'on appuie
sur F5 pour rafraichir la page, le graphe disparait.
C'est lié à la manière dont les paramètres sont désormais stockés dans
le fragment de l'URL et à la manière dont ils sont ensuite décodés par
mootools.
Change-Id: I6ff6cd882d036c563dabf6edd6d0d50896210801
Refs: #1603.
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2410
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
vigigraph/public/js/graph.js | ||
---|---|---|
471 | 471 |
var new_graphs = []; |
472 | 472 |
var qs = new Hash(new_fragment.get('fragment').parseQueryString()); |
473 | 473 |
if (qs.has('graphs')) { |
474 |
new_graphs = (new Hash(qs.get('graphs'))).getValues();
|
|
474 |
new_graphs = $splat(qs.get('graphs'));
|
|
475 | 475 |
} |
476 | 476 |
|
477 | 477 |
// Section critique. |
Also available in: Unified diff