Browse Source

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>
20.11.x
Owen Leonard 11 months ago
committed by Jonathan Druart
parent
commit
6ba108f4eb
  1. 9
      koha-tmpl/intranet-tmpl/prog/js/cart.js

9
koha-tmpl/intranet-tmpl/prog/js/cart.js

@ -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, {

Loading…
Cancel
Save