summaryrefslogtreecommitdiff
path: root/js/utils.js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-09-22 11:33:22 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-09-22 11:33:22 (GMT)
commitc6657a7f19fb97fc6b84e8b6eb37152f966e0848 (patch)
tree47a0ddfcacbb48cca09f78c2abd353d646c938cb /js/utils.js
parentf83ad4964258f54b67628cb3d65702d862dd3272 (diff)
added alertbox for main window
Diffstat (limited to 'js/utils.js')
-rw-r--r--js/utils.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/utils.js b/js/utils.js
index 4d7d0d6..0e76068 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -1,12 +1,12 @@
alertbox = function() {}
-alertbox.warning = function (heading, message) {
- $('#alertbox').html('<div class="alert"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
+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>');
}
-alertbox.error = function (heading, message) {
- $('#alertbox').html('<div class="alert alert-error"><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>');
}
-alertbox.info = function (heading, message) {
- $('#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.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>');
}
var weekday = new Array(7);