Fix thinko in opac.js and bib_brief.js.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 4 Oct 2011 13:29:52 +0000 (09:29 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 15 Nov 2011 22:14:25 +0000 (17:14 -0500)
Forgot to change the variable name from cbs to cbsObj when reporting that
the source cannot have copies.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/xul/staff_client/chrome/content/cat/opac.js
Open-ILS/xul/staff_client/server/cat/bib_brief.js

index 7a27291..2bf5ab5 100644 (file)
@@ -926,9 +926,8 @@ function add_volumes() {
             return;
         }
 
-
         if (!can_have_copies) {
-            alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbs.source()]));
+            alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbsObj.source()]));
             return false;
         }
 
index 41ee31a..4be0fb2 100644 (file)
@@ -191,7 +191,7 @@ function add_volumes() {
         }
 
         if (!can_have_copies) {
-            alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbs.source()]));
+            alert(document.getElementById('offlineStrings').getFormattedString('staff.cat.bib_source.can_have_copies.false', [cbsObj.source()]));
             return false;
         }