diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-02-21 11:09:57 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-02-21 13:13:26 +0200 |
commit | c90ff48c00b0fcd27284c30625b66350e1731739 (patch) | |
tree | 04c42de07e583c3b06bbcbfd2dac011857131265 /web/statusbar.js | |
parent | 870d9c2e141d9fd494657f36c8c8e162eb446dff (diff) | |
download | aconf-c90ff48c00b0fcd27284c30625b66350e1731739.tar.bz2 aconf-c90ff48c00b0fcd27284c30625b66350e1731739.tar.xz |
web client: show error message when collection member insertion fails
Diffstat (limited to 'web/statusbar.js')
-rw-r--r-- | web/statusbar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/statusbar.js b/web/statusbar.js index 3488772..28e5ba4 100644 --- a/web/statusbar.js +++ b/web/statusbar.js @@ -3,10 +3,10 @@ * See LICENSE file for license details */ -define(["jquery"], function($) { +define(["acf2/dom", "jquery"], function(dom, $) { function set(status, msg, mode) { $("#status").prop("class", status); - $("#status p").text(msg); + dom.setText($("#status p"), msg); $("#logout").prop("class", mode ? "hidden" : null); $("#status div").prop("class", mode == "txn" ? null : "hidden"); $("#commit").prop("disabled", status == "invalid"); |