Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/aphlict/behavior-aphlict-listen.js
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | JX.behavior('aphlict-listen', function(config) { | ||||
| JX.Stratcom.listen('aphlict-notification-message', null, function(e) { | JX.Stratcom.listen('aphlict-notification-message', null, function(e) { | ||||
| JX.Stratcom.invoke('notification-panel-update', null, {}); | JX.Stratcom.invoke('notification-panel-update', null, {}); | ||||
| var response = e.getData(); | var response = e.getData(); | ||||
| // Show the notification itself. | // Show the notification itself. | ||||
| new JX.Notification() | new JX.Notification() | ||||
| .setContent(JX.$H(response.content)) | .setContent(JX.$H(response.content)) | ||||
| .setDesktopReady(response.desktopReady) | .setDesktopReady(response.desktopReady) | ||||
| .setWebReady(response.webReady) | |||||
| .setKey(response.primaryObjectPHID) | .setKey(response.primaryObjectPHID) | ||||
| .setTitle(response.title) | .setTitle(response.title) | ||||
| .setBody(response.body) | .setBody(response.body) | ||||
| .setHref(response.href) | .setHref(response.href) | ||||
| .setIcon(response.icon) | .setIcon(response.icon) | ||||
| .show(); | .show(); | ||||
| // If the notification affected an object on this page, show a | // If the notification affected an object on this page, show a | ||||
| ▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines | |||||