use '_gid' instead of '_id' for grouping tag to avoid malfunction on '_id' tag naviga...
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 6 Jan 2016 10:50:10 +0000 (11:50 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 6 Jan 2016 10:50:10 +0000 (11:50 +0100)
web/index.php
web/info.js

index 851c447..a8d8429 100644 (file)
@@ -1444,7 +1444,7 @@ type="submit" class="button" onclick="this.form.elements['realsub'].value = 'chi
 <td class="ri info-opt data"><input type="radio" name="friend" class="friend_id" value="bff"
     onclick="info_onlyifknown_isvisible();">Amico fidato</td>
 </tr>
-<tr class="onlyifknown_id">
+<tr class="onlyifknown_gid">
 <td class="le head"><span><?php echo $mlang_room['info_skill'][$G_lang]; ?>:</span></td>
 <td class="data">
     <table class="fiverank" style="margin: auto;">
index 54d9093..1d4e197 100644 (file)
@@ -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;
 }