From: Nicolas Iooss Date: Mon, 17 Feb 2014 22:13:08 +0000 (+0100) Subject: Fix visibility flags ordering in javascript X-Git-Tag: xorg/1.1.12~27 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2dd71595216b0bf28623c5805687e3717593084c;p=platal.git Fix visibility flags ordering in javascript 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. --- diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index 44d56c6..e6fea88 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -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