Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 12.x
  • Verint Community
Verint Community 12.x
API Documentation evolutionModerate jQuery Plugin
  • User Documentation
  • Ask the Community
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • API Documentation
  • +In-Process API Documentation
  • +Plugin API Documentation
  • +REST API Documentation
  • -Widget, Theme, and Automation APIs
    • +Automation Events
    • -Client-side APIs
      • +Client Messages
      • +Composer Plugins
      • +JavaScript API Modules
      • +jQuery Events
      • -jQuery Plugins
        • dynamicForm jQuery Plugin
        • evolutionBookmark jQuery Plugin
        • evolutionCodeEditor jQuery Plugin
        • evolutionComposer jQuery Plugin
        • evolutionFeature jQuery Plugin
        • evolutionHighlight jQuery Plugin
        • evolutionHtmlEditor jQuery Plugin
        • evolutionInlineTagEditor jQuery Plugin
        • evolutionLike jQuery Plugin
        • evolutionMasonry jQuery Plugin
        • evolutionModerate jQuery Plugin
        • evolutionPager jQuery Plugin
        • evolutionProgressIndicator jQuery Plugin
        • evolutionResize jQuery Plugin
        • evolutionScrollable jQuery Plugin
        • evolutionScrollSlider jQuery Plugin
        • evolutionSqueezeText jQuery Plugin
        • evolutionStarRating jQuery Plugin
        • evolutionTagTextBox jQuery Plugin
        • evolutionTextEditor jQuery Plugin
        • evolutionTheater jQuery Plugin
        • evolutionTip jQuery Plugin
        • evolutionToggleLink jQuery Plugin
        • evolutionTransform jQuery Plugin
        • evolutionUserFileTextBox jQuery Plugin
        • evolutionValidation jQuery Plugin
        • glowColorSelector jQuery Plugin
        • glowDateTimeSelector jQuery Plugin
        • glowDropDownList jQuery Plugin
        • glowLookUptextBox jQuery Plugin
        • glowModal jQuery Plugin
        • glowMultiUpload jQuery Plugin
        • glowOrderedList jQuery Plugin
        • glowPatternedTextBox jQuery Plugin
        • glowPopUpMenu jQuery Plugin
        • glowPopUpPanel jQuery Plugin
        • glowTabbedPanes jQuery Plugin
        • glowTabSet jQuery Plugin
        • glowTransition jQuery Plugin
        • glowTree jQuery Plugin
        • glowUpload jQuery Plugin
        • uilinks jQuery Plugin
      • +UI Components
    • +Dynamic Configuration
    • +LESS Functions
    • +Script API Types
    • +Script APIs

You are currently reviewing an older revision of this page.

  • History View current version

evolutionModerate jQuery Plugin


jQuery.fn.evolutionModerate

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 notification is displayed to the reporting user. It also supports displaying other actions alongside abuse reporting. Raises and responds to ui.reportabuse messages. It is typically not invoked directly, but rather by the moderate UI component.

Usage

Initializes the moderation plugin where SELECTOR is a <span>.

$('SELECTOR').evolutionModerate(options)

Options

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

Default:

<ul class="navigation-list">
    <% foreach(links, function(link){ %>
        <li class="navigation-item">
            <a href="<%: (link.href || "#") %>" class="<%: (link.className || "") %>"><%= link.text %></a>
        </li>
    <% }); %>
</ul>

  • Telligent
  • Professional Services
  • Submit a Support Ticket
  • Become a Partner
  • Request a Demo
  • Contact Us

About
Privacy Policy
Terms of use
Copyright 2024 Verint, Inc.
Powered by Verint Community