From bff532c317f2ae7bf5157159b0f732ac74483c26 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 21 Dec 2012 07:26:36 -0500 Subject: [PATCH] lp1090867 Hide Fields undefined var error This fixes the "Error in widget_prompt.js, my_init(): TypeError: offlineStrings is undefined" error. Signed-off-by: Jason Etheridge Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/chrome/content/util/widget_prompt.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/widget_prompt.js b/Open-ILS/xul/staff_client/chrome/content/util/widget_prompt.js index ff128cae3f..3bb78a456c 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/widget_prompt.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/widget_prompt.js @@ -13,6 +13,10 @@ function my_init() { $('widget_prompt_main').appendChild(widget); } + if (typeof offlineStrings == 'undefined') { + offlineStrings = $('offlineStrings'); + } + var ok_label = xul_param('ok_label') || offlineStrings.getString('common.ok.label'); $('ok_btn').setAttribute('label',ok_label); -- 2.11.0