Bug 11127: (follow-up) define a specific message for suggestions
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 11 Mar 2014 11:07:13 +0000 (12:07 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 13 Mar 2014 16:50:12 +0000 (16:50 +0000)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt

index 8bb4ccd..7e55007 100644 (file)
     //<![CDATA[
     var MSG_CONFIRM_AGAIN = _("Warning: Cannot be undone. Please confirm once again")
     var MSG_DELETE_SEARCH_HISTORY = _("Are you sure you want to delete your search history?");
+    var MSG_NO_SUGGESTION_SELECTED = _("No suggestion was selected");
     [% IF Koha.Preference( 'opacbookbag' ) == 1 or Koha.Preference( 'virtualshelves' ) == 1 %]
         var MSG_BASKET_EMPTY = _("Your cart is currently empty");
         var MSG_RECORD_IN_BASKET = _("The item is already in your cart");
index ff495cf..573cd37 100644 (file)
         enableCheckboxActions();
         $("#myform").on('submit', function() {
           if ( $("input:checked").size() < 1 ) {
-            alert(MSG_NO_RECORD_SELECTED);
+            alert(MSG_NO_SUGGESTION_SELECTED);
             return false;
           }
           return true;