Ignore vim swap files.
[mkws-moved-to-github.git] / src / mkws-widget-categories.js
index e9e004a..a11e522 100644 (file)
@@ -13,15 +13,15 @@ mkws.registerWidgetType('Categories', function() {
 
     req.get(null, function(data) {
       if (!$.isXMLDoc(data)) {
-       alert("categories response document is not XML");
-       return;
+        alert("categories response document is not XML");
+        return;
       }
       that.log("got categories: " + data);
 
       var text = [];
       text.push("Select category: ");
       text.push("<select name='mkwsCategory' " +
-               "onchange='mkws.limitCategory(\"" + that.team.name() + "\", this.value)'>");
+                "onchange='mkws.limitCategory(\"" + that.team.name() + "\", this.value)'>");
       text.push("<option value=''>[All]</option>");
       $(data).find('category').each(function() {
         var name = $(this).find('categoryName').text();
@@ -29,7 +29,7 @@ mkws.registerWidgetType('Categories', function() {
         text.push("<option value='", id, "'>", name, "</option>");
       });
       text.push("</select>");
-      $(that.node).html(text.join(''));
+      that.node.html(text.join(''));
     });
   });
 });