diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/utils.js | 7 |
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="#">×</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>'); + $('#' + dest + ' .alertbox').html('<div class="alert alert-warning"><a class="close" data-dismiss="alert" href="#">×</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="#">×</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>'); + $('#' + dest + ' .alertbox').html('<div class="alert alert-danger"><a class="close" data-dismiss="alert" href="#">×</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="#">×</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="#">×</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>'); +} Number.prototype.pad = function(size) { var s = String(this); |