Last change
on this file since 339 was
311,
checked in by hendrikvanantwerpen, 13 years ago
|
[Client] Use toaster to show errors from server
[Client] Create widget for mainmenu, cleaner loading of index.html now.
[Server] Renamed answerset datetime to more meaningful creationdate
|
File size:
728 bytes
|
Line | |
---|
1 | define(['dojo/_base/declare','dojo/_base/lang','dojo/_base/connect','dojox/widget/Toaster'], |
---|
2 | function(declare,lang,connect,Toaster){ |
---|
3 | return declare('rft.ui.Notifications',[Toaster],{ |
---|
4 | positionDirection: "br-up", |
---|
5 | duration: 1000, |
---|
6 | postCreate: function() { |
---|
7 | this.inherited(arguments); |
---|
8 | this.handle = connect.subscribe('/rft/notify',lang.hitch(this,function(notification){ |
---|
9 | this.setContent(notification.text,notification.type || 'message'); |
---|
10 | })); |
---|
11 | }, |
---|
12 | destroy: function() { |
---|
13 | connect.unsubscribe(this.handle); |
---|
14 | this.inherited(arguments); |
---|
15 | } |
---|
16 | }); |
---|
17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.