Jump to content

How to get member id


NilsFMH

Recommended Posts

Posted

Hi,
I am editing the root_ramework.js file and the global/framework/common/ui/ips.ui.autocomplete.js function.

To make a long story short I need to add member id when a token is created in ignore and PM function. This is performed in the following code:

_buildResultsList = function() {
    if (options.resultsElem && $(options.resultsElem).length) {
        resultsElem = $(options.resultsElem);
        return;
    }
    var resultsList = ips.templates.render(options.resultsTemplate, {
        id: elemID
    });
    wrapper.append(resultsList);
    resultsElem = $('#' + elemID + '_results');
    resultsElem.on('mouseover', '[data-value]', function(e) {
        results.select($(e.currentTarget));
    }).on('click', '[data-value]', function(e) {
        _addToken($(e.currentTarget).attr('data-value'));
        textField.focus();
    }).attr('aria-busy', 'false');
}

More precisely "_addToken($(e.currentTarget).attr('data-value'))". If I change it to "_addToken($(e.currentTarget).attr('data-value') + ' ' + 'test')" test is added to the token. I need to replace 'test' with code the adds the member id of the user that is selected.

I have tried everything I know for hours and unfortionutly I am not a good programmer, can someone help me with the code that solves this?

Extremely grateful for all help I can get!
Kind regards,
Nils

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...