From: Matteo Nastasi (mop) Date: Wed, 6 Jan 2016 10:50:10 +0000 (+0100) Subject: use '_gid' instead of '_id' for grouping tag to avoid malfunction on '_id' tag naviga... X-Git-Tag: v5.3.0~14 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=a87693bd247721f88dd0b1bed23c00a75aa51c6e;p=brisk.git use '_gid' instead of '_id' for grouping tag to avoid malfunction on '_id' tag navigation, retrieve right 'friend_id' dom objects using more proper fieldify_get_dom_element function --- diff --git a/web/index.php b/web/index.php index 851c447..a8d8429 100644 --- a/web/index.php +++ b/web/index.php @@ -1444,7 +1444,7 @@ type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chi Amico fidato - + : diff --git a/web/info.js b/web/info.js index 54d9093..1d4e197 100644 --- a/web/info.js +++ b/web/info.js @@ -113,7 +113,7 @@ function info_save() function info_onlyifknown_isvisible() { var vis = 'inherit'; - var arr = $('info').getElementsByClassName('friend_id'); + var arr = fieldify_get_dom_element([$('info')], 'friend'); var obj = null; for (var k = 0 ; k < arr.length ; k++) { @@ -129,6 +129,6 @@ function info_onlyifknown_isvisible() if (obj.value == 'black' || obj.value == 'unknown') { vis = 'hidden'; } - $('info').getElementsByClassName('onlyifknown_id')[0].style.visibility = vis; + $('info').getElementsByClassName('onlyifknown_gid')[0].style.visibility = vis; return true; }