22 lines
765 B
JavaScript
22 lines
765 B
JavaScript
|
var Messages = {
|
||
|
error: function(message) {
|
||
|
$("ul.messages").append("<li class=\"error\">" + message + "<div class=\"close\">✕</div></li>");
|
||
|
window.floaterrors(true);
|
||
|
},
|
||
|
|
||
|
warning: function(message) {
|
||
|
$("ul.messages").append("<li class=\"warning\">" + message + "<div class=\"close\">✕</div></li>");
|
||
|
window.floaterrors(true);
|
||
|
},
|
||
|
|
||
|
success: function(message) {
|
||
|
$("ul.messages").append("<li class=\"success\">" + message + "<div class=\"close\">✕</div></li>");
|
||
|
window.floaterrors(true);
|
||
|
},
|
||
|
|
||
|
info: function(message) {
|
||
|
$("ul.messages").append("<li class=\"info\">" + message + "<div class=\"close\">✕</div></li>");
|
||
|
window.floaterrors(true);
|
||
|
},
|
||
|
};
|