From: phasefx Date: Wed, 20 Jul 2005 01:57:35 +0000 (+0000) Subject: I forgot that handle_error looks for Bill's ex objects. This tweak makes the confima... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=571b77ee3a7ab6a2142ce4d898366b868014cc55;p=Evergreen.git 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 --- 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); }