From 4322942efdc95f7ad4887822f3452fe998300d0a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 25 Mar 2008 15:22:44 -0500 Subject: [PATCH] Notifying the user when they have selected no items and clicked 'Add to list.' Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/js/basket.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/js/basket.js b/koha-tmpl/opac-tmpl/prog/en/js/basket.js index 56ea21b3cc..8bc731ccdb 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/basket.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/basket.js @@ -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. -- 2.39.5