AnnouncementActivity.js

From disqus.com, 2 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to /AddModActivity.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/7a761131 Embed
Download Paste or View Raw
  1. define('home/models/activities/AnnouncementActivity',[
  2.     'home/models/Activity',
  3.     'home/activityExpander',
  4. ], function (
  5.     Activity,
  6.     activityExpander
  7. ) {
  8.     'use strict';
  9.  
  10.     /**
  11.      * A system message for end users
  12.      *
  13.      * Relations {
  14.      *     object: {
  15.      *         type: 'Announcement',
  16.      *         description: 'The contents of the announcement'
  17.      *     }
  18.      * }
  19.      */
  20.     return Activity.extend({
  21.         defaults: {
  22.             verb: 'send',
  23.         },
  24.  
  25.         initialize: function (attributes) {
  26.             this.object = attributes.object;
  27.         },
  28.  
  29.         parseRelatedModels: function (attributes, objects) {
  30.             attributes.object = activityExpander.buildAnnouncement(objects, attributes.object);
  31.             return attributes;
  32.         },
  33.     });
  34. });
  35.  
  36. // https://c.disquscdn.com/next/home/js/models/activities/AnnouncementActivity.js

Replies to AnnouncementActivity.js rss

Title Name Language When
/ChannelInviteActivity.js disqus.com javascript 2 Months ago.

Reply to "AnnouncementActivity.js"

Here you can reply to the paste above