Fix for Bug 3271, Missing message when adding to a list with no items selected
authorOwen Leonard <oleonard@myacpl.org>
Sat, 13 Nov 2010 04:16:56 +0000 (23:16 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 13 Nov 2010 06:36:23 +0000 (19:36 +1300)
There is no visible Lists button to "attach" our warning to
as there is in the OPAC, so warning message is displayed via
a javascript alert.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/js/basket.js

index 8a0bd20..0ab6711 100644 (file)
@@ -210,9 +210,7 @@ function showCartUpdate(msg){
 
 function showListsUpdate(msg){
        // set body of popup window
-       $("#listsDetails").html(msg);
-       showLists();
-       setTimeout("hideLists()",2000); 
+       alert(msg);
 }
 
 function selRecord(num, status) {