Skip to:
Content

BuddyPress.org

Changeset 12287


Ignore:
Timestamp:
11/15/2018 07:20:57 PM (6 years ago)
Author:
boonebgorges
Message:

Nouveau: Bail out of Messages autocomplete if suggest library is absent.

This is a safety measure, in case suggest is unloaded for some reason.

Props r-a-y.
Fixes #7951.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/js/buddypress-messages.js

    r12250 r12287  
    106106                return;
    107107            } else {
     108                // Mentions isn't available, so bail.
     109                if ( _.isEmpty( exports.mentions ) ) {
     110                    return;
     111                }
     112
    108113                $( window.tinyMCE.activeEditor.contentDocument.activeElement )
    109114                    .atwho( 'setIframe', $( '#message_content_ifr' )[0] )
Note: See TracChangeset for help on using the changeset viewer.