# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-16 13:00:32 # Node ID 0b6f69a3ae0e400f035bc95a374b4f3bdf829ca1 # Parent 6cb196f112d9fe514cf6769f12d85b5099619a60 For autocompleting course departments, omit the trailing '-' so that the user has to type a space or other delimiter himself. This make the interface more intuitive. diff --git a/auto.php b/auto.php --- a/auto.php +++ b/auto.php @@ -77,7 +77,7 @@ if (!$getsections && count($term_parts) foreach ($deptartments as $key => $department) { if (!strncmp($department, $dept, $term_strlen)) - $departments[$key] = $department . '-'; + $departments[$key] = $department; else unset($departments[$key]); }