Files
c-cms-legacy/public/js/notify.js
2019-08-14 15:29:37 -04:00

34 lines
620 B
JavaScript
Vendored

function showNotification(type,msg,from, align){
switch (type) {
case 'success':
var icon = 'check_circle'
break;
case 'error':
var icon = 'error'
type = 'danger'
break;
case 'warning':
var icon = 'warning'
break;
default:
var icon = "bug_report"
break;
}
$.notify({
icon: icon,
message: msg
},{
type: type,
timer: 2500,
placement: {
from: from,
align: align
}
});
}