From 2dd71595216b0bf28623c5805687e3717593084c Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Mon, 17 Feb 2014 23:13:08 +0100 Subject: [PATCH] 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. --- htdocs/javascript/profile.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.1.4