1
0
mirror of synced 2025-01-19 06:27:23 +01:00
2019-12-08 21:43:49 +00:00

22 lines
765 B
JavaScript

var Messages = {
error: function(message) {
$("ul.messages").append("<li class=\"error\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
warning: function(message) {
$("ul.messages").append("<li class=\"warning\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
success: function(message) {
$("ul.messages").append("<li class=\"success\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
info: function(message) {
$("ul.messages").append("<li class=\"info\">" + message + "<div class=\"close\">&#10005;</div></li>");
window.floaterrors(true);
},
};