silverstripe/silverstripe-framework — pull request #3178 by colymba (2014-05-31 14:49:10+00:00)
Title: API New SSNotice JS tools

Worked on replacing `jquery.notice.js` with a custom set of function and streamline the look of notice/messages in the CMS. The old one would usually get in the way for me, not be very useful (for errors) and look out of place. See screenshots below.

This basically create a library in the `ss` namespace `ss.notice` with a few function for displaying messages, notices, errors, warning. It would be great if someone could look at it and give some opinion/pointers.

* Goes in pair with CMS pull request
* Left the old `statusMessage` and `errorMessage` function with deprecation notices
* Should message + notice disappear automatically or stay by default like errors wand warnings?
* Multiple instance of empty `

` message tag in various templates which I could not find use for anywhere so they were deleted.
* Behat test updated, although I can't get Behat to run on my system so this might need some reviewing

Before:
![image](https://cloud.githubusercontent.com/assets/978040/3139264/7b61553c-e8d2-11e3-8270-a511d117da38.png)

![image](https://cloud.githubusercontent.com/assets/978040/3139234/e52a4db8-e8d0-11e3-8241-9215cd0ada11.png)

After:
![image](https://cloud.githubusercontent.com/assets/978040/3139262/7049dc5a-e8d2-11e3-8a8b-bd79809c675b.png)

![image](https://cloud.githubusercontent.com/assets/978040/3139260/1b8aea38-e8d2-11e3-806b-c3767dd7558c.png)

![image](https://cloud.githubusercontent.com/assets/978040/3139238/063257e4-e8d1-11e3-9b5a-ae28f80bc89d.png)