summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-02-05 05:09:08 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-02-05 05:09:08 (GMT)
commit8fd0ef727c7552d431603109c9a1a9a064ba3e2c (patch)
tree96db3976697489f54759af78dac26a912ee2ace2 /www/js
parent6bc93a0fc64e39386c688f98885541a48d1a6c07 (diff)
fixed login screen after bootstrap upgrade
Diffstat (limited to 'www/js')
-rw-r--r--www/js/utils.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/utils.js b/www/js/utils.js
index b8bfee7..1359b39 100644
--- a/www/js/utils.js
+++ b/www/js/utils.js
@@ -26,14 +26,17 @@ var Rivendell = Rivendell || {};
var alertbox = function() {}
alertbox.warning = function (dest, heading, message) {
- $('#' + dest + ' .alertbox').html('<div class="alert"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
+ $('#' + dest + ' .alertbox').html('<div class="alert alert-warning"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
}
alertbox.error = function (dest, heading, message) {
- $('#' + dest + ' .alertbox').html('<div class="alert alert-error"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
+ $('#' + dest + ' .alertbox').html('<div class="alert alert-danger"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
}
alertbox.info = function (dest, heading, message) {
$('#' + dest + ' .alertbox').html('<div class="alert alert-info"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
}
+alertbox.success = function (dest, heading, message) {
+ $('#' + dest + ' .alertbox').html('<div class="alert alert-success"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
+}
Number.prototype.pad = function(size) {
var s = String(this);