Correct syntax for dojo.string.substitute() and remove offending unpaired parens
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 27 Jun 2010 17:37:37 +0000 (17:37 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 27 Jun 2010 17:37:37 +0000 (17:37 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16819 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/booking/reservation.js

index 08b56b2..8958799 100644 (file)
@@ -317,14 +317,13 @@ function create_bresv(resource_list) {
             } else {
                 if (results.length == 1) {
                     alert(dojo.string.substitute(
-                        localeStrings.CREATE_BRESV_OK(results.length)
+                        localeStrings.CREATE_BRESV_OK, [results.length]
                     ));
                 } else {
                     alert(dojo.string.substitute(
-                        localeStrings.CREATE_BRESV_OK_PLURAL(results.length)
+                        localeStrings.CREATE_BRESV_OK_PLURAL, [results.length]
                     ));
                 }
-            );
             }
             update_brsrc_list();
             update_bresv_grid();