Improving dialog for linking to a vendor, allow choice between

OK and Cancel for whether to link to a vendor rather than requiring
a vendor be added.
This commit is contained in:
Joshua Ferraro 2008-04-22 19:53:14 -05:00
parent 340dcb421e
commit 70c5aed218
1 changed files with 8 additions and 2 deletions

View File

@ -763,8 +763,14 @@ function Find_ISSN(f)
function Check(f) {
if (f.aqbooksellerid.value.length==0) {
alert(_("You must choose a supplier"));
} else if (f.biblionumber.value.length==0) {
input_box = confirm(_("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor"));
if (input_box==true) {
}
else {
return false;
}
}
if (f.biblionumber.value.length==0) {
alert(_("You must choose or create a biblio"));
} else if(f.startdate.value.length != 0 && f.sublength.value > 0) {
if (f.irreg_check.value == 1) {