A search engine for MMP's eASLRB.
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.
 
 
 
 
 
asl-rulebook2/asl_rulebook2/webapp/static/utils.js

17 lines
552 B

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"),
} ) ;
}