From 9c27c22e2ca4ad49ecccfebb5161004f8e414108 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 11 Mar 2014 12:07:13 +0100 Subject: [PATCH] Bug 11127: Define a specific message for suggestion --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 1 + koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index 8bb4ccd..3b1503b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -123,6 +123,7 @@ var MSG_IN_YOUR_CART = _("Items in your cart: "); var MSG_ITEM_NOT_IN_CART = _("Add to your cart"); var MSG_NO_RECORD_SELECTED = _("No item was selected"); + var MSG_NO_SUGGESTION_SELECTED = _("No suggestion was selected"); [% END %] [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %] var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system."); 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 ff495cf..573cd37 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -290,7 +290,7 @@ enableCheckboxActions(); $("#myform").on('submit', function() { if ( $("input:checked").size() < 1 ) { - alert(MSG_NO_RECORD_SELECTED); + alert(MSG_NO_SUGGESTION_SELECTED); return false; } return true; -- 1.7.10.4