mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11008] Remove eval() calls to get document[id]
PHPBB3-11008
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user