Fixed issue 124, JS dropdown lists not working in Issues page under IE 7 & 8.
IE does not like trailing comma in an array. Bad: [1, 2, 3,] Good: [1, 2, 3]
This commit is contained in:
parent
a1ecb4c0b0
commit
a116c27c03
@ -241,7 +241,7 @@ class IDF_Views_Download
|
||||
$auto .= sprintf('{ name: "%s", to: "%s" }, ',
|
||||
Pluf_esc($d), Pluf_esc($v));
|
||||
}
|
||||
return substr($auto, 0, -1);
|
||||
return substr($auto, 0, -2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -549,7 +549,7 @@ class IDF_Views_Issue
|
||||
Pluf_esc($d),
|
||||
Pluf_esc($v));
|
||||
}
|
||||
$auto[$key] = substr($auto[$key], 0, -1);
|
||||
$auto[$key] = substr($auto[$key], 0, -2);
|
||||
}
|
||||
// Get the members/owners
|
||||
$m = $project->getMembershipData();
|
||||
@ -565,7 +565,7 @@ class IDF_Views_Issue
|
||||
Pluf_esc($owner),
|
||||
Pluf_esc($owner->login));
|
||||
}
|
||||
$auto['auto_owner'] = substr($auto['auto_owner'], 0, -1);
|
||||
$auto['auto_owner'] = substr($auto['auto_owner'], 0, -2);
|
||||
unset($auto['_auto_owner']);
|
||||
return $auto;
|
||||
}
|
||||
|
@ -407,7 +407,7 @@ class IDF_Views_Wiki
|
||||
$auto .= sprintf('{ name: "%s", to: "%s" }, ',
|
||||
Pluf_esc($d), Pluf_esc($v));
|
||||
}
|
||||
return substr($auto, 0, -1);
|
||||
return substr($auto, 0, -2);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user