Re-enable main "entries" subwidget, and place the Facet in the same
authorMike Taylor <mike@indexdata.com>
Thu, 22 May 2014 13:27:34 +0000 (14:27 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 22 May 2014 13:27:34 +0000 (14:27 +0100)
team as it so that a search gets fired that yields facets.

examples/htdocs/mkws-widget-credo.js

index b7f8f4f..d0cbfe2 100644 (file)
@@ -37,13 +37,13 @@ mkws.registerWidgetType('Credo', function() {
   s.push(section('mindmap', 'Create a Mind Map for ### title',
                  '### Is there a way to make a mind-map?'));
   s.push(section('topics', 'Related Topics',
-                 this.subwidget('Facet', { facet: 'subject' })));
+                 this.subwidget('Facet', { _team: 'main', facet: 'subject' })));
   s.push('</td>');
 
   s.push('</tr>');
 
   s.push(sectionRow('entries', 'Credo Entries',
-                    1 || this.subwidget('Records', { /* ### config */ })));
+                    this.subwidget('Records', { _team: 'main' })));
   s.push(sectionRow('articles', 'Articles',
                     1 || this.subwidget('Records', { /* ### config */ })));
   s.push(sectionRow('books', 'Books',