Add sort column to improve listing
[misc/hallinta-metro] / ordersatz_pos.php
index 8bb8cd1..4820c6c 100644 (file)
@@ -19,8 +19,8 @@ if (substr($_SERVER["SCRIPT_FILENAME"],-10) == '/index.php' &&
   $done = is_done($_GET['id']);
 }
 
-if (!$done)
-$jscode[] = <<<EOC
+if (!$done) {
+  $jscode = <<<EOC
 grid_column_edit[1] = {
     default_menu: false,
     width: '9em',
@@ -99,6 +99,8 @@ function import_articles()
 }
 
 EOC;
+  $javascript->add($jscode);
+}
 
 $buttons = <<<EOC
 <p style="margin-top: 0px; margin-bottom: 4px; text-align: center;">
@@ -176,7 +178,7 @@ $mask = array(
                              'hersteller' => array(
                                            'name' => 'Hersteller',
                                            'width' => 80,
-                                           'specs' => "filterUI: 't5'",
+                                           'specs' => "filterUI: 't4'",
                                            ),
                              'vpe' => array(
                                            'name' => 'Einheit',