-mkws.registerWidgetType('Categories', function() {
+mkws.registerWidgetType('categories', function() {
var that = this;
if (!mkws.authenticated) {
}
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)
});
var text = [];
text.push("Select category: ");
- text.push("<select name='mkwsCategory' " +
+ text.push("<select name='mkws-category mkwsCategory' " +
"onchange='mkws.limitCategory(\"" + that.team.name() + "\", this.value)'>");
text.push("<option value=''>[All]</option>");
$(data).find('category').each(function() {