mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11008] Remove eval() calls to get document[id]
PHPBB3-11008
This commit is contained in:
parent
841ea0e494
commit
ca43a8947a
4 changed files with 4 additions and 20 deletions
|
@ -62,11 +62,7 @@ function dE(n, s, type)
|
||||||
*/
|
*/
|
||||||
function marklist(id, name, state)
|
function marklist(id, name, state)
|
||||||
{
|
{
|
||||||
var parent = document.getElementById(id);
|
var parent = document.getElementById(id) || document[id];
|
||||||
if (!parent)
|
|
||||||
{
|
|
||||||
eval('parent = document.' + id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,11 +42,7 @@ function jumpto()
|
||||||
*/
|
*/
|
||||||
function marklist(id, name, state)
|
function marklist(id, name, state)
|
||||||
{
|
{
|
||||||
var parent = document.getElementById(id);
|
var parent = document.getElementById(id) || document[id];
|
||||||
if (!parent)
|
|
||||||
{
|
|
||||||
eval('parent = document.' + id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,11 +43,7 @@
|
||||||
*/
|
*/
|
||||||
function marklist(id, name, state)
|
function marklist(id, name, state)
|
||||||
{
|
{
|
||||||
var parent = document.getElementById(id);
|
var parent = document.getElementById(id) || document[id];
|
||||||
if (!parent)
|
|
||||||
{
|
|
||||||
eval('parent = document.' + id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,11 +71,7 @@ function find_username(url)
|
||||||
*/
|
*/
|
||||||
function marklist(id, name, state)
|
function marklist(id, name, state)
|
||||||
{
|
{
|
||||||
var parent = document.getElementById(id);
|
var parent = document.getElementById(id) || document[id];
|
||||||
if (!parent)
|
|
||||||
{
|
|
||||||
eval('parent = document.' + id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue