diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc
index 81f0c5b5..96cc368b 100644
--- a/lam/lib/lists.inc
+++ b/lam/lib/lists.inc
@@ -622,7 +622,6 @@ class lamList {
else echo("\n");
}
echo ("\n");
-// echo ("type . "\" type=\"submit\" name=\"refresh\" value=\"" . _("Change suffix") . "\">");
}
}
diff --git a/lam/templates/lib/list.js b/lam/templates/lib/list.js
index 67c910c1..c20dccd7 100644
--- a/lam/templates/lib/list.js
+++ b/lam/templates/lib/list.js
@@ -52,9 +52,14 @@ function list_click(list, box, scope) {
}
}
-function listOUchanged(type) {
- selectOU = document.getElementsByName('suffix')[0];
- location.href='list.php?type=' + type + '&suffix=' + selectOU.options[selectOU.selectedIndex].value;
+/**
+ * The user changed the value in the OU selection box. This will reload the list view with the new suffix.
+ *
+ * @param type account type
+ * @param element dropdown box
+ */
+function listOUchanged(type, element) {
+ location.href='list.php?type=' + type + '&suffix=' + element.options[element.selectedIndex].value;
}
function SubmitForm(id, e) {