Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   inactive users, posted by Devin Bougie on Wed Apr 27 21:27:36 2016 
    icon2.gif   Re: inactive users, posted by Stefano Lacaprara on Wed May 31 11:45:06 2017 
       icon4.gif   Re: inactive users, posted by Andreas Luedeke on Wed May 31 13:28:51 2017 
          icon2.gif   Re: inactive users, posted by Stefano Lacaprara on Wed May 31 16:02:46 2017 
             icon2.gif   Re: inactive users, posted by Stefano Lacaprara on Mon Feb 26 18:27:09 2018 elogd.c
                icon2.gif   Re: inactive users, posted by Stefan Ritt on Fri Dec 21 14:59:05 2018 
Message ID: 68628     Entry time: Wed May 31 16:02:46 2017     In reply to: 68627     Reply to this: 68744   68745
Icon: Reply  Author: Stefano Lacaprara  Author Email: stefano.lacaprara@pd.infn.it 
Category: Bug report  OS: Linux  ELOG Version: 3.1.1 
Subject: Re: inactive users 
Hi,
  a possible solution is to change the current SetAll() and SetNone() javascript functions to something like:


  <!--
function SetNone()
{
  for(var i=0,els=document.querySelectorAll('[name^="sub_lb"]'); i<els.length; i++)
  {
    els[i].checked = false;
  }
}
function SetAll()
{
  for(var i=0,els=document.querySelectorAll('[name^="sub_lb"]'); i<els.length; i++)
  {
    els[i].checked = true;
  }
}
//-->

It works on Chromium 58.x and Firefox 53.x, I don't know about other browsers.

The javascript snippet is generated in function elogd.c: void show_config_page(LOGBOOK * lbs) (line 13960-984 on my version of the source code).

Best,
  Stefano
ELOG V3.1.5-fe60aaf