Fix visibility flags ordering in javascript
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Mon, 17 Feb 2014 22:13:08 +0000 (23:13 +0100)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Mon, 17 Feb 2014 22:13:11 +0000 (23:13 +0100)
The new "hidden" flag introduced by commit 07e4a9a has not been declared in JS,
which leads to a bug in the address management profile page. Visibility flags
were no longer ordered between an address and the associated phone numbers.

htdocs/javascript/profile.js

index 44d56c6..e6fea88 100644 (file)
@@ -58,11 +58,12 @@ var subgrades;
 var names;
 var multiples;
 
-// Publicity follows the following ordering: private < ax < public.
+// Publicity follows the following ordering: hidden < private < ax < public.
 var publicity = [];
-publicity['private'] = 0;
-publicity['ax']      = 1;
-publicity['public']  = 2;
+publicity['hidden']  = 0;
+publicity['private'] = 1;
+publicity['ax']      = 2;
+publicity['public']  = 3;
 
 // Names {{{1