vaffa
This commit is contained in:
parent
9d9df3c449
commit
70348f56c3
1 changed files with 11 additions and 0 deletions
|
@ -22,6 +22,17 @@ ARKIWI.Aggregator = function (aggregator, defaultParameters) {
|
|||
|
||||
ARKIWI.Aggregator.constructor = ARKIWI.Aggregator;
|
||||
|
||||
/* Chiede all'aggregatore i metadati su una cartella o un file. */
|
||||
ARKIWI.Aggregator.prototype.path = function (path, callback, notBase64) {
|
||||
var pathType = notBase64 ? 'path' : 'path64';
|
||||
$.getJSON(this.aggregator + '/' + pathType + '/' + path + '/json/?' + this.defaultParameters, function (result) {
|
||||
if (callback != undefined)
|
||||
callback(result);
|
||||
}).fail(function (error) {
|
||||
throw 'Arkiwi.path(): status ' + status + ' error ' + error.responseText;
|
||||
});
|
||||
};
|
||||
|
||||
/* Esegue un ricerca sull'aggregatore */
|
||||
ARKIWI.Aggregator.prototype.search = function (query, callback, jailFolder) {
|
||||
var sanitizedQuery = query;
|
||||
|
|
Loading…
Reference in a new issue