From 2d914706d9ef6ca54171b2d18b7d6e7b68c7c280 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 22 Aug 2014 10:54:35 +0100 Subject: [PATCH] Change mkws-widget-categories.js to access the pazpar2 URL via the new API function. But this makes me uneasy -- that seems like too low a level for the widget to be operating at. I think it should be sending its categories request via the team's existing m_paz object. --- src/mkws-widget-categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index 339e28b..6982db8 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -7,7 +7,7 @@ mkws.registerWidgetType('Categories', function() { } 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) }); -- 1.7.10.4