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:
Loic d'Anterroches 2009-02-01 09:54:09 +01:00
parent a1ecb4c0b0
commit a116c27c03
3 changed files with 4 additions and 4 deletions

View File

@ -241,7 +241,7 @@ class IDF_Views_Download
$auto .= sprintf('{ name: "%s", to: "%s" }, ', $auto .= sprintf('{ name: "%s", to: "%s" }, ',
Pluf_esc($d), Pluf_esc($v)); Pluf_esc($d), Pluf_esc($v));
} }
return substr($auto, 0, -1); return substr($auto, 0, -2);
} }
/** /**

View File

@ -549,7 +549,7 @@ class IDF_Views_Issue
Pluf_esc($d), Pluf_esc($d),
Pluf_esc($v)); Pluf_esc($v));
} }
$auto[$key] = substr($auto[$key], 0, -1); $auto[$key] = substr($auto[$key], 0, -2);
} }
// Get the members/owners // Get the members/owners
$m = $project->getMembershipData(); $m = $project->getMembershipData();
@ -565,7 +565,7 @@ class IDF_Views_Issue
Pluf_esc($owner), Pluf_esc($owner),
Pluf_esc($owner->login)); 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']); unset($auto['_auto_owner']);
return $auto; return $auto;
} }

View File

@ -407,7 +407,7 @@ class IDF_Views_Wiki
$auto .= sprintf('{ name: "%s", to: "%s" }, ', $auto .= sprintf('{ name: "%s", to: "%s" }, ',
Pluf_esc($d), Pluf_esc($v)); Pluf_esc($d), Pluf_esc($v));
} }
return substr($auto, 0, -1); return substr($auto, 0, -2);
} }
} }