Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Add autocomplete argument to beforeUseConverter #95

Open
cjmendoza opened this issue Aug 10, 2013 · 0 comments
Open

Add autocomplete argument to beforeUseConverter #95

cjmendoza opened this issue Aug 10, 2013 · 0 comments

Comments

@cjmendoza
Copy link

I am using beforeUseConverter to include some extra parameters based on current values in the form. In the callback, in order to modify the url or the extraParams I need to have a handle to the object. I modified version locally by adding param to the call. Can you include in future releases.

/**
 * Convert string before use
 * @param {String} s
 */
$j.Autocompleter.prototype.beforeUseConverter = function(s) {
    s = this.getValue(s);
    var converter = this.options.beforeUseConverter;
    if ($j.isFunction(converter)) {
        s = converter(s, this);  ***made change here.
    }
    return s;
};

Thanks

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