@@ -, +, @@ string - On the search results page, without checking any checkboxes, use the "Select titles to..." menu to try to add to cart and add to a list. In each case you should get a "No item was selected" message. - View a list which contains one or more titles. Click the "Remove from list" link. You should get a "No item was selected" link. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt | 4 ++-- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 6 +++--- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt @@ -335,7 +335,7 @@ $("#tag_hides").hide(); $("#tagsel_form").show(); } else { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); } } @@ -350,7 +350,7 @@ function tagAdded() { var checkedBoxes = $("input:checkbox:checked"); if (!$(checkedBoxes).size()) { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); return false; } --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -631,7 +631,7 @@ [% END %] if ($(".confirmjs:checked").size() == 0) { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); return false; } --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -652,7 +652,7 @@ if (checkedCount > 0) { holdBiblioNums(checkedBiblioNums); } else { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); } } @@ -667,7 +667,7 @@ function tagSelected() { var checkedBoxes = $(".searchresults :checkbox:checked"); if ($(checkedBoxes).size() == 0) { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); } else { $("#tagsel_tag").hide(); $(".resort").hide(); @@ -686,7 +686,7 @@ function tagAdded() { var checkedBoxes = $(".searchresults :checkbox:checked"); if ($(checkedBoxes).size() == 0) { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); return false; } --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -813,7 +813,7 @@ var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?"); function holdSelections() { var checkedBoxes = $("input:checkbox:checked"); if ($(checkedBoxes).size() == 0) { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); } else { var bibs = ""; $(checkedBoxes).each(function(){ @@ -831,7 +831,7 @@ var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?"); $(".tag_hides").hide(); $("#tagsel_form").show(); } else { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); } } @@ -846,7 +846,7 @@ var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?"); function tagAdded() { var checkedBoxes = $("input:checkbox:checked"); if (!$(checkedBoxes).size()) { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); return false; } @@ -970,7 +970,7 @@ $(function() { return confirmDelete(MSG_REMOVE_ONE_FROM_LIST); } } else { - alert(MSG_NO_RECORD_SELECTED); + alert( __("No item was selected") ); return false; } }); --