From 81a292c6334f7e000af0d2167ea0671da00c436d Mon Sep 17 00:00:00 2001 From: dbs Date: Sun, 13 Apr 2008 23:46:53 +0000 Subject: [PATCH] Clean up the problems I introduced during i18n-ization git-svn-id: svn://svn.open-ils.org/ILS/trunk@9329 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/server/cat/copy_buckets_quick.xul | 25 ++++++++++++++-------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul b/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul index e0baefa519..dce25e422c 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_buckets_quick.xul @@ -40,9 +40,9 @@ function my_init() { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); - if (typeof JSAN == 'undefined') { - throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); - } + if (typeof JSAN == 'undefined') { + throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); + } JSAN.errorLevel = "die"; // none, warn, or die JSAN.addRepository('/xul/server/'); JSAN.use('util.error'); g.error = new util.error(); @@ -60,11 +60,14 @@ } ); - $('desc').appendChild( document.createTextNode( - (g.copy_ids.length == 1 ? - $('catStrings').getString('staff.cat.copy_buckets_quick.bucket_prompt') : - $('catStrings').getFormattedString('staff.cat.copy_buckets_quick.bucket_prompt.plural', [g.copy_ids.length]) - ) ); + $('desc').appendChild( + document.createTextNode( + (g.copy_ids.length == 1 ? + $('catStrings').getString('staff.cat.copy_buckets_quick.bucket_prompt') : + $('catStrings').getFormattedString('staff.cat.copy_buckets_quick.bucket_prompt.plural', [g.copy_ids.length]) + ) + ) + ); var robj = g.network.simple_request('BUCKET_RETRIEVE_VIA_USER',[ ses(), g.data.list.au[0].id() ]); if (typeof robj.ilsevent != 'undefined') throw(robj); @@ -107,7 +110,7 @@ g.add_to_bucket(bucket_id); } } catch(E) { - g.error.standard_unexpected_error_alert($('catStrings).getString('staff.cat.copy_buckets_quick.copy_buckets_new_bucket.error'), E); + g.error.standard_unexpected_error_alert($('catStrings').getString('staff.cat.copy_buckets_quick.copy_buckets_new_bucket.error'), E); } } @@ -148,6 +151,10 @@ ]]> + + + + -- 2.11.0