Notifying the user when they have selected no items and clicked 'Add to list.'
authorOwen Leonard <oleonard@myacpl.org>
Tue, 25 Mar 2008 20:22:44 +0000 (15:22 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 1 Apr 2008 11:41:13 +0000 (06:41 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/js/basket.js

index 56ea21b..8bc731c 100644 (file)
@@ -383,7 +383,11 @@ function openBiblio(dest,biblionumber) {
 
 function addSelToShelf() {
     var items = document.getElementById('records').value;
+       if(items){
     document.location = "/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber="+items;
+       } else {
+        alert(MSG_NO_RECORD_SELECTED);
+    }
 }
 
 ///  vShelfAdd()  builds url string for multiple-biblio adds.