[open-ils-commits] [GIT] Evergreen ILS branch master updated. b985f0be980990b19ff738e27ed2abc169b8e6bc
Evergreen Git
git at git.evergreen-ils.org
Mon Mar 11 21:12:11 EDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via b985f0be980990b19ff738e27ed2abc169b8e6bc (commit)
from be6e23f10b58ca7b2419eb8dd5e5493c105dd74f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b985f0be980990b19ff738e27ed2abc169b8e6bc
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Mon Mar 11 15:09:51 2013 -0400
Escape barcode completion button labels
Some characters piss off the XML parser.
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
index 1dea0ef..316c033 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
@@ -2670,7 +2670,7 @@ commands:
if(context != valid_r[i].type && offlineStrings.testString('barcode_choice.' + valid_r[i].type + '_label'))
button_label = offlineStrings.getFormattedString('barcode_choice.' + valid_r[i].type + '_label', [button_label]);
- xml += '<button label="' + button_label + '" name="fancy_submit" value="' + i + '"/>';
+ xml += '<button label="' + button_label.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"') + '" name="fancy_submit" value="' + i + '"/>';
}
}
xml += '<button label="' + offlineStrings.getString('barcode_choice.none') + '" name="fancy_cancel"/>';
-----------------------------------------------------------------------
Summary of changes:
.../xul/staff_client/chrome/content/main/menu.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list