You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
552 B
18 lines
552 B
3 years ago
|
export function showInfoMsg( msg ) { _doShowNotificationMsg( "notice", msg ) ; }
|
||
|
export function showWarningMsg( msg ) { _doShowNotificationMsg( "warning", msg ) ; }
|
||
|
export function showErrorMsg( msg ) { _doShowNotificationMsg( "error", msg ) ; }
|
||
|
|
||
|
function _doShowNotificationMsg( msgType, msg )
|
||
|
{
|
||
|
// show the notification message
|
||
|
$.growl( {
|
||
|
style: msgType,
|
||
|
title: null,
|
||
|
message: msg,
|
||
|
location: "br",
|
||
|
duration: (msgType == "warning") ? 15*1000 : 5*1000,
|
||
|
fixed: (msgType == "error"),
|
||
|
} ) ;
|
||
|
}
|
||
|
|