Widget:KeywordSearch: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
Line 57: Line 57:
}
}
function runQueries(obj) {
function runQueries(obj) {
                obj.questionListAll = [];
var api = new mw.Api();
var api = new mw.Api();
api.get({
api.get({
Line 66: Line 67:
if ((obj.keyword.iterator+1) < obj.queries.length) {
if ((obj.keyword.iterator+1) < obj.queries.length) {
         obj.keyword.iterator++;
         obj.keyword.iterator++;
        $.each(data.query.results, function(index, value){
              obj.questionListAll.push(obj.fulltext);
        });
         runQueries(obj);         
         runQueries(obj);         
 
} else {
} else {}
        console.log(obj.questionListAll); 
        }
});
});
}
}

Revision as of 20:10, 21 October 2013