Trying to update patron CSS color fails here, so don't try user/senator/patron-display-undefined
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 26 Jul 2012 20:45:24 +0000 (16:45 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 26 Jul 2012 20:50:35 +0000 (16:50 -0400)
commit4ed9884b1af51ef2b1ed3d2e07c1c7011a3bbfd0
treeba975ba63137c0a04cb631fffa30d6b55711d28a
parent5fd92464a3046a38806bcd88d5e82591494609e2
Trying to update patron CSS color fails here, so don't try

After modifying user standing penalties ("messages" in the staff client
patron interface), you could get this error message in an alert() dialog:
    TypeError: patron.display is undefined.

We were apparently trying to use patron.util.set_patron_css() wrongly,
so the commented out changed verison of the call got farther, but stopped at
    ...penalties[i].standing_penalty().name is not a function.

Which probably has something to do with unfleshed data.  Somebody can
get to the bottom of this if they want, but for now it's easier just not
to try to do this and make the alert() dialog go away.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/xul/staff_client/server/patron/standing_penalties.js