X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-categories.js;h=339e28b2eea680aeeb37183017f26ea1b56be57e;hb=e775ddeb55acb3ead4c5e7f6e1ed0b601f91f5f4;hp=aa25653675646530835d6524f5bf485ad069a63c;hpb=a2724017cbd5c011daa38489723ee3197877e085;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index aa25653..339e28b 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -1,8 +1,8 @@ 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; } @@ -29,7 +29,7 @@ mkws.registerWidgetType('Categories', function() { text.push(""); }); text.push(""); - $(that.node).html(text.join('')); + that.node.html(text.join('')); }); }); });