]> jfr.im git - z_archive/KronOS.git/blobdiff - frontend/webos.js
Fixed error box with multiple messages, slightly more styling.
[z_archive/KronOS.git] / frontend / webos.js
index f22820e93078dccde06b6e4546c915028876d69e..1a4ea55fa30917cc7a6ff6d7689a46e2650242c5 100644 (file)
@@ -22,7 +22,11 @@ function processResponse(resp) {
                        }
                }
        } else {
-               $("div#error").html(resp.error.reason);
-               $("div#error").fadeIn('fast').delay(5000).fadeOut('slow');
+               $("div#error").append('<p>'+resp.error.reason+'</p>');
+               $("div#error").slideDown(400);
+               $("div#error").click(function () {
+                       $("div#error").slideUp(400);
+                       $("div#error").html('<p><small>click to close</small></p>');
+               });
        }
 }