Sha256: 774bd67cebb53685d5bebe8461baa7d9c1870c2f94602762116ec6e13d147d39

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

var edtfVar;

function edtfAPIQuery(query) {
    edtfVar = [];
    Rails.ajax({
        url: "/vaultify/edtf.text",
        async: false,
        type: "GET",
        data: "query=" + query,
        success: function (result) {
            if (result != "") {
                edtfVar.push(JSON.parse('{"text":"' + result + '", "url":"' + result + '"}'));
            }
        }
    });
}

Version data entries

4 entries across 4 versions & 1 rubygems

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