Categories widget invokes mkws.limitCategory
authorMike Taylor <mike@indexdata.com>
Tue, 22 Apr 2014 13:11:56 +0000 (14:11 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 22 Apr 2014 13:11:56 +0000 (14:11 +0100)
src/mkws-widget-categories.js

index 4d2f7e7..c80bc0c 100644 (file)
@@ -20,7 +20,8 @@ mkws.registerWidgetType('Categories', function() {
 
             var text = [];
             text.push("Select category: ");
-            text.push("<select name='mkwsCategory' onchange='alert(1)'>");
+            text.push("<select name='mkwsCategory' " +
+                     "onchange='mkws.limitCategory(\"" + that.team.name() + "\", this.value)'>");
             $(data).find('category').each(function() {
                 var name = $(this).find('categoryName').text();
                 var id = $(this).find('categoryId').text();