summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-18 13:37:52 +0100
committerAndrew Dolgov <[email protected]>2006-05-18 13:37:52 +0100
commit0530ddd88b5314fe0f75a6c81ac317509feea6c6 (patch)
tree958d92b3a2ed28fea153e95cf69518a027521a22 /functions.js
parent4d4200a87b0b5005373411b2a6757324ad9af077 (diff)
notify system improvements
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/functions.js b/functions.js
index 1914855d6..ad6a95f95 100644
--- a/functions.js
+++ b/functions.js
@@ -93,7 +93,7 @@ function hide_notify() {
}
}
-function notify_real(msg, doc, no_hide) {
+function notify_real(msg, doc, no_hide, is_err) {
var n = doc.getElementById("notify");
var nb = doc.getElementById("notify_body");
@@ -106,6 +106,16 @@ function notify_real(msg, doc, no_hide) {
n.style.display = "block";
}
+ if (is_err) {
+ n.style.backgroundColor = "#ffaaaa";
+ n.style.color = "white";
+ n.style.borderColor = "#ff0000";
+ } else {
+ n.style.backgroundColor = "#fff7d5";
+ n.style.borderColor = "#d7c47a";
+ n.style.color = "black";
+ }
+
nb.innerHTML = msg;
if (notify_hide_timerid) {
@@ -120,12 +130,12 @@ function notify_real(msg, doc, no_hide) {
}
}
-function p_notify(msg, no_hide) {
- notify_real(msg, parent.document, no_hide);
+function p_notify(msg, no_hide, is_err) {
+ notify_real(msg, parent.document, no_hide, is_err);
}
-function notify(msg, no_hide) {
- notify_real(msg, document, no_hide);
+function notify(msg, no_hide, is_err) {
+ notify_real(msg, document, no_hide, is_err);
}
function printLockingError() {