1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-01 08:03:00 +00:00

Add simple notification mechanism

This commit is contained in:
Jeremy Ruston
2013-05-07 18:08:44 +01:00
parent 6b6dbb97a8
commit 24db38c06b
4 changed files with 106 additions and 0 deletions

View File

@@ -65,6 +65,11 @@ exports.startup = function() {
document.addEventListener("tw-modal",function(event) {
$tw.modal.display(event.param);
},false);
// Install the notification mechanism
$tw.notifier = new $tw.utils.Notifier($tw.wiki);
document.addEventListener("tw-notify",function(event) {
$tw.notifier.display(event.param);
},false);
// Install the scroller
$tw.pageScroller = new $tw.utils.PageScroller();
document.addEventListener("tw-scroll",$tw.pageScroller,false);