$done = is_done($_GET['id']);
}
-if (!$done)
-$jscode[] = <<<EOC
+if (!$done) {
+ $jscode = <<<EOC
grid_column_edit[1] = {
default_menu: false,
width: '9em',
}
EOC;
+ $javascript->add($jscode);
+}
$buttons = <<<EOC
<p style="margin-top: 0px; margin-bottom: 4px; text-align: center;">