librenms/librenms — pull request #299 by laf (2014-09-30 23:38:05+00:00)
Title: Added a new library to support on screen notification messages

This allows you to place on screen notifications for warnings, errors or success messages.

To use you can either just call the js library directly:

toastr.success('Have fun storming the castle!', 'Miracle Max Says')
See https://github.com/CodeSeven/toastr for more examples.

Or you can add what you need to an array which will then loop through and put the messages on screen:

$msg_box[] = array("type" => "success", "message" => "Have fun storming the castle!'", "title" => "Miracle Max Says");