X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-categories.js;h=6982db841c201454bdc440dfcfb638ffd7f51afa;hb=5888c42c27253ec9719d933896aff4c371fb85a9;hp=a11e52239657c8089c869bf89d91158c60127991;hpb=16708a6aebe10acd3b72bcb20b03c54d1195a1b9;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index a11e522..6982db8 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -1,13 +1,13 @@ mkws.registerWidgetType('Categories', function() { var that = this; - if (!this.config.use_service_proxy) { - alert("can't use categories widget without Service Proxy"); + if (!mkws.authenticated) { + alert("can't use categories widget when not authenticated"); return; } this.team.queue("authenticated").subscribe(function(authName, realm) { - var req = new pzHttpRequest(that.config.pazpar2_url + "?command=categories", function(err) { + var req = new pzHttpRequest(mkws.pazpar2_url() + "?command=categories", function(err) { alert("HTTP call for categories failed: " + err) });