Download:
child 6:33d306388e7f
parent 4:61a86e766285
5:de01e29e06b5
Anton Shestakov <engored@ya.ru>, Thu, 14 Mar 2013 23:36:24 +0900
Highlight error messages. Usually they are fatal and thus the last thing appearing on the status bar, so no removeClass (or other methods) needed.

2 файлов изменено, 5 вставок(+), 0 удалений(-) [+]
static/css/main.css file | annotate | diff | comparison | revisions
static/js/main.js file | annotate | diff | comparison | revisions
--- a/static/css/main.css Tue Mar 12 13:56:00 2013 +0900
+++ b/static/css/main.css Thu Mar 14 23:36:24 2013 +0900
@@ -21,3 +21,7 @@
right: 0;
bottom: 0;
}
+
+.error {
+ color: #ff9696;
+}
--- a/static/js/main.js Tue Mar 12 13:56:00 2013 +0900
+++ b/static/js/main.js Thu Mar 14 23:36:24 2013 +0900
@@ -116,6 +116,7 @@
function fail() {
$('#status').text(Array.prototype.join.call(arguments, ' '));
+ $('#status').addClass('error');
console.error.apply(console, arguments);
}