Class: DuplicateAccountList

DuplicateAccountList

new DuplicateAccountList(args)

Select a list of accounts you believe to be duplicates for the same user

Name Type Description
args Object duplicate account arguments
Example
var dupe_list = new DuplicateAccountList({

    required: [{ username: ..., user_id: ..., email: ..., notes: ... }, ...], // Accounts that must be included in the list
    default : [{ username: ..., user_id: ..., email: ..., notes: ... }, ...], // Accounts that will be suggested by default

    show_heatmap: false, // if true, the "required" and "default" lists must include info and mod_info

    // other data needed for the list to function:
    bb          : bb, // BulletinBoard object
    v           : v, // Variables object
    callback    : function(users) { ... }, // called with the current data
    container   : dupes_appended_to_this,
    loading_html: 'loading...',

});

Extends

Methods

Add a user to the list

Get/set widget's values

if "show_heatmap" is true, the "required" and "default" lists must include info and moderation_info
Name Type Description
value Object new value
Returns:
Type Description
Object (new) value
Example
ns.val({
    required: [{ username: ..., user_id: ... }, ...], // Accounts that must be included in the list
    default : [{ username: ..., user_id: ... }, ...], // Accounts that will be suggested by default
});