From b70492b349b2876b9852cf2776b2638904b1d3b2 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 14 Aug 2007 16:44:03 +0000 Subject: [PATCH] tweaks to make this other implementation work; but need to re-test the original in light of the /server/xul/ <-> /xul/server/ mixup git-svn-id: svn://svn.open-ils.org/ILS/trunk@7662 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/main/bindings.xml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml b/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml index 29d0b4ba3e..e4bbb58af8 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml +++ b/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml @@ -49,6 +49,9 @@ for (var i in props) { this._props[i] = props[i]; } + } else { + var msg = "messageCatalog: No text from " + this.src; + alert(msg); throw(msg); } ]]> @@ -88,7 +91,7 @@ } while ( cont == true ); props[k] = v; - } + } return props; ]]> @@ -102,7 +105,7 @@ try { return this._props[key]; } catch(e) { - dump("*** Failed to get string " + key + " in bundle: " + this.src + "\n"); + alert("*** Failed to get string " + key + " in bundle: " + this.src + "\n"); throw(e); } ]]> @@ -115,11 +118,12 @@ @@ -201,7 +205,7 @@ } var a = arguments, i = 0, format = a[i++]; - return format.replace(sprintf.regex, function(substring, valueIndex, flags, minWidth, _, precision, type) { + return format.replace(this.regex, function(substring, valueIndex, flags, minWidth, _, precision, type) { if (substring == '%%') return '%'; // parse flags -- 2.11.0