X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-core.js;h=11a48894406c83006dd8af6188d8f68c75f54362;hb=df823384f61228cdcedc53999e44dc4704c858f9;hp=07a4b2d3f2da9d4cfe15cab77966deb10414d23b;hpb=1a51392909607488f4a104c32bf2dbcbf2008364;p=mkws-moved-to-github.git diff --git a/src/mkws-core.js b/src/mkws-core.js index 07a4b2d..11a4889 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -182,6 +182,10 @@ mkws.limitQuery = function(tname, field, value) { mkws.teams[tname].limitQuery(field, value); }; +mkws.limitCategory = function(tname, id) { + mkws.teams[tname].limitCategory(id); +}; + mkws.delimitTarget = function(tname, id) { mkws.teams[tname].delimitTarget(id); }; @@ -299,8 +303,10 @@ mkws.pagerNext = function(tname) { log("Service proxy auth successfully done"); mkws.authenticated = true; var authName = $(data).find("displayName").text(); + // You'd think there would be a better way to do this: + var realm = $(data).find("realm:not(realmAttributes realm)").text(); for (var teamName in mkws.teams) { - mkws.teams[teamName].queue("authenticated").publish(authName); + mkws.teams[teamName].queue("authenticated").publish(authName, realm); } runAutoSearches();