Bug 26439: (QA follow-up) Correct MSG instances in cart.js

To test, add some items to the cart in the staff interface and open the
cart window. Test the "Selected items" links (Remove, add to list,
etc.) without checking any checkboxes. You should get an alert, "No item
was selected."

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2020-10-15 13:01:50 +00:00 committed by Jonathan Druart
parent ceee890899
commit 6ba108f4eb
1 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,9 @@
/* global __ dataTablesDefaults showMore showLess delSelRecords addSelToShelf sendBasket printBasket delBasket openBiblio selRecord */
function placeHold () {
var checkedItems = $("input:checkbox:checked");
if ($(checkedItems).size() === 0) {
alert(MSG_NO_RECORD_SELECTED);
alert( __("No item was selected") );
return false;
}
@ -28,7 +29,7 @@ function placeHold () {
function batchDelete(){
var checkedItems = $("input:checkbox:checked");
if ($(checkedItems).size() === 0) {
alert(MSG_NO_RECORD_SELECTED);
alert( __("No item was selected") );
return false;
}
var newloc;
@ -48,7 +49,7 @@ function batchDelete(){
function batchModify(){
var checkedItems = $("input:checkbox:checked");
if ($(checkedItems).size() === 0) {
alert(MSG_NO_RECORD_SELECTED);
alert( __("No item was selected") );
return false;
}
var newloc;
@ -82,7 +83,7 @@ $(document).ready(function(){
});
$(".holdsep").text("| ");
$(".hold").text(_("Place hold"));
$(".hold").text( __("Place hold") );
$("#downloadcartc").empty();
$("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {