From: Matteo Nastasi Date: Tue, 12 May 2020 11:59:40 +0000 (+0200) Subject: fix missing bold for your account item X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=e6c3174bac4c08c87309c2389ec344c3e8144ca0;hp=3c0d8bf34bba6581226954997c57e193b073ea72;p=brisk.git fix missing bold for your account item --- diff --git a/web/room.js b/web/room.js index 7085be4..6308903 100644 --- a/web/room.js +++ b/web/room.js @@ -332,6 +332,9 @@ function j_stand_cont(ddata) for (i = 0 ; i < standup_data_old.length ; i++) { for (e = 0 ; e < data.length ; e++) { if (standup_data_old[i][1] == data[e][1]) { + if (data[e][1] == window.myname) { + data[e][0] |= 1; + } break; } } @@ -344,6 +347,9 @@ function j_stand_cont(ddata) if (standup_data_old[i][0] != data[e][0] || standup_data_old[i].length != data[e].length || (data[e].length == 3 && standup_data_old[i][2] != data[e][2])) { + if (data[e][1] == window.myname) { + data[e][0] |= 1; + } arr_mod[idx_mod_n] = data[e]; idx_mod[idx_mod_n++] = i; } @@ -359,6 +365,9 @@ function j_stand_cont(ddata) } } if (i == standup_data_old.length) { + if (data[e][1] == window.myname) { + data[e][0] |= 1; + } // console.log("ADD: "+data[e][1]); arr_add[idx_add_n] = data[e]; map_add[idx_add_n++] = e;