diff --git a/app/scripts/arkiwi.js b/app/scripts/arkiwi.js index bcc77bf..a099155 100644 --- a/app/scripts/arkiwi.js +++ b/app/scripts/arkiwi.js @@ -156,7 +156,7 @@ ARKIWI.Arkiwi.prototype.close = function (callback) { ARKIWI.Arkiwi.prototype.path = function (path, callback, notBase64) { var pathType = notBase64 ? 'path' : 'path64'; - $.getJSON(this.aggregator + '/' + pathType + '/' + path + '/jsonml/?' + this.defaultParameters, function (result) { + $.getJSON(this.aggregator + '/' + pathType + '/' + path + '/json/?' + this.defaultParameters, function (result) { if (callback != undefined) callback(result); }).fail(function (error) { @@ -173,7 +173,7 @@ ARKIWI.Arkiwi.prototype.search = function (query, callback, jailFolder) { sanitizedQuery = window.btoa(sanitizedQuery); //convert to Base64 - $.getJSON(this.aggregator + '/search64/' + sanitizedQuery + '/jsonml/?' + this.defaultParameters, function (result) { + $.getJSON(this.aggregator + '/search64/' + sanitizedQuery + '/json/?' + this.defaultParameters, function (result) { if (callback != undefined) callback(result); }).fail(function (error) { diff --git a/app/scripts/main.js b/app/scripts/main.js index 0ac98e1..eef0c50 100644 --- a/app/scripts/main.js +++ b/app/scripts/main.js @@ -16,7 +16,7 @@ $(document).ready(function () { var arkiwi = new ARKIWI.Arkiwi('http://www.arkiwi.org', 'http://upload.arkiwi.org'); $.get("templates/list.txt", function (template) { - arkiwi.path("XM24/Occupy_Mordor", function (listone) { + arkiwi.path("XM24", function (listone) { var dioporco = Mustache.render(template, listone); $(".row").append(dioporco); }, true); diff --git a/app/templates/list.txt b/app/templates/list.txt index 8c7a54b..118f207 100644 --- a/app/templates/list.txt +++ b/app/templates/list.txt @@ -1,6 +1,5 @@ {{#items}} -ciao - + {{/items}} - -