From 571b77ee3a7ab6a2142ce4d898366b868014cc55 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 20 Jul 2005 01:57:35 +0000 Subject: [PATCH] I forgot that handle_error looks for Bill's ex objects. This tweak makes the confimation alerts optional git-svn-id: svn://svn.open-ils.org/ILS/trunk@1294 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Evergreen/staff_client/chrome/content/evergreen/util/error.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Evergreen/staff_client/chrome/content/evergreen/util/error.js b/Evergreen/staff_client/chrome/content/evergreen/util/error.js index 59ed83af90..c6a87c33a7 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/util/error.js +++ b/Evergreen/staff_client/chrome/content/evergreen/util/error.js @@ -165,7 +165,7 @@ function arg_dump(args,dump_these) { } } -function handle_error(E) { +function handle_error(E,annoy) { var s = ''; if (instanceOf(E,ex)) { s += E.err_msg(); @@ -180,6 +180,9 @@ function handle_error(E) { if (snd_really_bad) snd_really_bad(); } sdump('D_ERROR',s); - s_alert(s); + if (annoy) + s_alert(s); + else + alert(s); } -- 2.11.0