Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

jquery-mentiony installation issue #10

Open
BoumBam opened this issue Aug 12, 2019 · 0 comments
Open

jquery-mentiony installation issue #10

BoumBam opened this issue Aug 12, 2019 · 0 comments

Comments

@BoumBam
Copy link

BoumBam commented Aug 12, 2019

I have include all file needed ot install that plug-in but the code below not work.
It gives me that error:
Uncaught ReferenceError: content is not defined at HTMLDivElement.onInputBoxInput

`$('#show_post_wall_modal').mentiony({
onDataRequest: function (mode, keyword, onDataRequestCompleteCallback) {

var mentiony___ = {
mentiony_: "mentiony"
}

    $.ajax({
        method: "Post",
        url:'includes/profile_includes/func_infos.php',
        dataType: "json",
        success: function (response) {
            var data = response;

            // NOTE: Assuming this filter process was done on server-side
            data = jQuery.grep(data, function( item ) {
                return item.name.toLowerCase().indexOf(keyword.toLowerCase()) > -1;
            });
            // End server-side

            // Call this to populate mention.
            onDataRequestCompleteCallback.call(this, data);
        },
        data: JSON.stringify(mentiony___)
    });

},
timeOut: 500, // Timeout to show mention after press @
debug: 1, // show debug info

});`

My other question does that plug-in compatible with https://github.com/mervick/emojionearea

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant