]> source.dussan.org Git - nextcloud-server.git/commit
Add timeout for notifications
authorMorris Jobke <hey@morrisjobke.de>
Wed, 7 Jan 2015 13:51:20 +0000 (14:51 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 8 Jan 2015 12:06:45 +0000 (13:06 +0100)
commit8e1904386fe75c77675c882e2d3eca34d5828cec
tree157973fb67ae3cd5b6846f94db7ec685d6366625
parent14e534e93322d3ce3275f04657de40fcf34d61d9
Add timeout for notifications

* options for timeout in seconds and if it contains HTML
* if timeout is 0 it will show the message permanently
* removes the notification after a given (default: 5 seconds) timeframe
* based on work by @brantje
* provide JS unit tests for notifications
core/js/js.js
core/js/tests/specs/coreSpec.js