<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionModerate jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67147/evolutionmoderate-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionModerate jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67147/evolutionmoderate-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:28:38 GMT</pubDate><guid isPermaLink="false">a762ddd4-7cb2-4511-ae6c-5c05fff7ea36</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67147/evolutionmoderate-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:38&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionModerate" name="jQuery_fn_evolutionModerate"&gt;&lt;/a&gt;jQuery.fn.evolutionModerate&lt;/h3&gt;
&lt;p&gt;This plugin implements a control which enables a user to report a piece of content as abusive via a drop-down menu which displays when hovered over. When reported, a [[notifications JavaScript API Module|notification]] is displayed to the reporting user. It also supports displaying other actions alongside abuse reporting. Raises and responds to [[ui.reportabuse Client Message|ui.reportabuse]] messages. It is typically not invoked directly, but rather by the [[moderate UI Component|moderate UI component]].&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initializes the moderation plugin where &lt;code&gt;SELECTOR&lt;/code&gt; is a &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionModerate(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;&lt;a id="Options" name="Options"&gt;&lt;/a&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;contentId&lt;/code&gt;: (string) Content Id&lt;/li&gt;
&lt;li&gt;&lt;code&gt;contentTypeId&lt;/code&gt;: (string) Content Type Id&lt;/li&gt;
&lt;li&gt;&lt;code&gt;initialState&lt;/code&gt;: (boolean) Currently reported by the accessing user&lt;/li&gt;
&lt;li&gt;&lt;code&gt;linkClassName&lt;/code&gt;: (string) CSS class to apply to the link&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;onReport&lt;/code&gt;: function which implements abuse reporting. Passed parameters:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;contentId&lt;/code&gt;: Content Id being reported&lt;/li&gt;
&lt;li&gt;&lt;code&gt;contentTypeId&lt;/code&gt;: Content Type Id being reported&lt;/li&gt;
&lt;li&gt;&lt;code&gt;complete&lt;/code&gt;: Callback to invoke when reporting has completed.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;onGetAdditionalLinks&lt;/code&gt;: function which, when invoked, can asynchronously provide additional links to display alongside abuse reporting within the same menu. Passed parameters:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;complete&lt;/code&gt;: Callback to invoke to pass an array of link objects back to the plugin. Each object should contain keys defining the link&amp;#39;s &lt;code&gt;href&lt;/code&gt; and &lt;code&gt;text&lt;/code&gt;, and optionally the &lt;code&gt;className&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;notificationDuration&lt;/code&gt;: (number) milliseconds to display notification after reporting abuse.
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;5000&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;supportsAbuse&lt;/code&gt;: (boolean) whether the content supports abuse and should embed abuse reporting within its menu
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;reportLinkText&lt;/code&gt;: (string) menu label to display when content is not reported. Evolution sets this automatically, localized.
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;&amp;#39;Report as abusive&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;reportedLinkText&lt;/code&gt;:   (string) menu label to display when content has already been reported. Evolution sets this automatically, localized.
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;&amp;#39;Reported as abusive&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;reportedNotificationMessageText&lt;/code&gt;: (string) message to display in the notification after reporting. Evolution sets this automatically, localized.
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;&amp;#39;{NAME}&amp;#39;s post has been reported. &amp;lt;strong&amp;gt;Thank you for your feedback.&amp;lt;/strong&amp;gt;&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;moderationLinkTemplate&lt;/code&gt;: (string) Template to use when rendering a moderation link. Evolution sets this automatically.
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;&amp;#39;&amp;lt;a href=&amp;quot;#&amp;quot; class=&amp;quot;&amp;lt;%: linkClassName %&amp;gt;&amp;quot;&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;%= resources.moderateLinkText %&amp;gt;&amp;lt;/a&amp;gt;&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;notificationTemplate&lt;/code&gt;: (string) Template to use when rendering a notification of reporting back to the reporting user. Evolution sets this automatically.
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;&amp;#39;&amp;lt;p&amp;gt;&amp;lt;%= resources.reportedNotificationMessageText %&amp;gt;&amp;lt;/p&amp;gt;&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;moderationMenuTemplate&lt;/code&gt;: (string) Template to use when rendering a moderation menu. Evolution sets this automatically.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Default:&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;ul class=&amp;quot;navigation-list&amp;quot;&amp;gt;
    &amp;lt;% foreach(links, function(link){ %&amp;gt;
        &amp;lt;li class=&amp;quot;navigation-item&amp;quot;&amp;gt;
            &amp;lt;a href=&amp;quot;&amp;lt;%: (link.href || &amp;quot;#&amp;quot;) %&amp;gt;&amp;quot; class=&amp;quot;&amp;lt;%: (link.className || &amp;quot;&amp;quot;) %&amp;gt;&amp;quot;&amp;gt;&amp;lt;%= link.text %&amp;gt;&amp;lt;/a&amp;gt;
        &amp;lt;/li&amp;gt;
    &amp;lt;% }); %&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>