@@ -, +, @@ OPAC (with js error: TypeError: f.addshelf is undefined). --- .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -550,7 +550,7 @@
  1. -
  2. + Required
  3. + [% IF referer == 'view' %] Cancel [% ELSE %] @@ -937,24 +937,6 @@ $(function() { [% END %] }); // document.ready -function Check(f) { - var _alertString=""; - var alertString2; - - if(f.addshelf.value.length ==0){ - _alertString += _("- You must enter a list name") + "\n"; - } - - if (_alertString.length==0) { - f.submit(); - } else { - alertString2 = _("Form not submitted because of the following problem(s)"); - alertString2 += "\n------------------------------------------------------------------------------------\n\n"; - alertString2 += _alertString; - alert(alertString2); - } -} - function AdjustPerms() { var category = $("#category").val(); var count_perms = $("#allow_changes_from option").length; --