extract latest git commit ID from github, MKWS-420
[mkws-moved-to-github.git] / src / mkws-widget-categories.js
index fc8896f..b9004c9 100644 (file)
@@ -1,22 +1,18 @@
 mkws.registerWidgetType('categories', function() {
   var that = this;
 
-  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(mkws.pazpar2_url() + "?command=categories", function(err) {
       alert("HTTP call for categories failed: " + err)
     });
 
     req.get(null, function(data) {
+      var $ = mkws.$;
       if (!$.isXMLDoc(data)) {
         alert("categories response document is not XML");
         return;
       }
-      that.log("got categories: " + data);
+      that.info("got categories: " + data);
 
       var text = [];
       text.push("Select category: ");