Extend notification handler to accept variables

Now we can provide variables to be passed to the rendering of the
notification text
This commit is contained in:
Jermolene
2016-07-03 14:55:41 +01:00
parent 6f8ee52e90
commit ff57b4084a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ exports.startup = function() {
// Install the notification mechanism
$tw.notifier = new $tw.utils.Notifier($tw.wiki);
$tw.rootWidget.addEventListener("tm-notify",function(event) {
$tw.notifier.display(event.param);
$tw.notifier.display(event.param,{variables: event.paramObject});
});
// Install the scroller
$tw.pageScroller = new $tw.utils.PageScroller();