From ea1cd37f4526c2b750f5c72fe6da71ff08d51ed0 Mon Sep 17 00:00:00 2001 From: Kyle Tomita Date: Fri, 24 May 2013 10:50:05 -0700 Subject: [PATCH] LP1164720 - Do not allow a list to be created with no name Added a Javascript function to validate the list name field. A valid name must be entered and cannot contain only spaces. Signed-off-by: Kyle Tomita --- Open-ILS/src/templates/opac/myopac/lists.tt2 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index 0b2977dc93..1abfac1974 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -35,11 +35,24 @@ [% l('Sharing Help') %] + + class="opac-button" + onClick="if(notEmpty(document.getElementById('list_create_name'), '[% l('Please enter a valid name for your list.') %]')) return true; return false" + />