Bug 17988: Add a comment to explain the line

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
This commit is contained in:
Jonathan Druart 2017-02-02 10:28:21 +01:00 committed by Mason James
parent ae7de6f684
commit ef92d9668c
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ function ExpandField(index) {
var original = document.getElementById(index); //original <div>
var divs = original.getElementsByTagName('div');
for(var i=0,divslen = divs.length ; i<divslen ; i++){ // foreach div
if(divs[i].hasAttribute('id') == 0 ) {continue; }
if(divs[i].hasAttribute('id') == 0 ) {continue; } # div elementis specific to Select2
if(divs[i].getAttribute('id').match(/^subfield/)){ // if it s a subfield
if (!divs[i].style.display) {
// first time => show all subfields