From 67ea43d220c4e3f84e0d17f6fba1ee8f70e7a888 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 23 Aug 2016 03:49:29 +0000 Subject: [PATCH] Bug 17166: OPAC suggestion form: Make Title a required field To test: 1) Log in to OPAC 2) Go to your suggestions 3) New suggestion 4) Attempt to submit a suggestion without the title 5) Notice pop-up error box 6) Apply patch and refresh page 7) Attempt to submit a suggestion without the title 8) Notice error bubble and form cannot submit Sponsored-by: Catalyst IT --- .../bootstrap/en/modules/opac-suggestions.tt | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index a6a515a..a92ee6b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -40,7 +40,7 @@
    -
  1. +
  2. Required
  3. @@ -89,7 +89,7 @@
    - Cancel + Cancel
    [% END %] @@ -338,24 +338,6 @@ }); [% END %] }); - - function Check(f) { - var _alertString=""; - var alertString2; - - if(f.title.value.length ==0){ - _alertString += _("- You must enter a Title") + "\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); - } - } //]]> [% END %] -- 2.1.4