Sha256: 589532053fb3ef5042620b8086afb41df32e651f56352a0953be8b1e533aab4c

Contents?: true

Size: 1.88 KB

Versions: 4

Compression:

Stored size: 1.88 KB

Contents

function fast_horsey() {
    var current_api = "fast";
    return horsey(document.querySelector('#autoc_field'), {
        source(data, done) {
            fastAPIQuery(data.input, 'suggestall');
            setTimeout(function () {
                done(null, [{
                    list: fastVar
                }])
            }, 2000);
        },
        getText: 'text',
        getValue: 'url',
        limit: 10
    });
}

function aat_horsey() {
    return horsey(document.querySelector('#autoc_field'), {
        source(data, done) {
            aatAPIQuery(data.input, 'suggestall');
            setTimeout(function () {
                done(null, [{
                    list: aatVar
                }])
            }, 2000);
        },
        getText: 'text',
        getValue: 'url',
        limit: 10
    });
}

function iso_horsey() {
    return horsey(document.querySelector('#autoc_field'), {
        source(data, done) {
            isoAPIQuery();
            setTimeout(function () {
                done(null, [{
                    list: isoVar
                }])
            }, 2000);
        },
        getText: 'text',
        getValue: 'url',
        limit: 10
    });
}

function dcmi_horsey() {
    return horsey(document.querySelector('#autoc_field'), {
        source(data, done) {
            setTimeout(function () {
                done(null, [{
                    list: dcmiVar
                }])
            }, 2000);
        },
        getText: 'text',
        getValue: 'url',
        limit: 10
    });
}

function edtf_horsey() {
    return horsey(document.querySelector('#autoc_field'), {
        source(data, done) {
            edtfAPIQuery(data.input);
            setTimeout(function () {
                done(null, [{
                    list: edtfVar
                }])
            }, 2000);
        },
        getText: 'text',
        getValue: 'url',
        limit: 10
    });
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vaultify-0.1.4 app/assets/javascripts/vaultify/autocomplete.js
vaultify-0.1.3 app/assets/javascripts/vaultify/autocomplete.js
vaultify-0.1.1 app/assets/javascripts/vaultify/autocomplete.js
vaultify-0.1.0 app/assets/javascripts/vaultify/autocomplete.js