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;
}
text.push("<option value='", id, "'>", name, "</option>");
});
text.push("</select>");
- $(that.node).html(text.join(''));
+ that.node.html(text.join(''));
});
});
});