Swap position of News and All Targets
authorMike Taylor <mike@indexdata.com>
Mon, 9 Jun 2014 14:31:16 +0000 (15:31 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 9 Jun 2014 14:31:16 +0000 (15:31 +0100)
examples/htdocs/mkws-widget-credo-bs.js

index 5847f16..d3f363e 100644 (file)
@@ -59,14 +59,14 @@ mkws.registerWidgetType('Credo', function() {
   
 
   s.push('<div class="row clearfix">');
-  s.push(section('entries clearfix col-md-4 col-sm-6', 'Results from all targets',
-                    this.subwidget('Records', { _team: 'main' })));
+  s.push(section('entries clearfix col-md-4 col-sm-6', 'News',
+                    this.subwidget('Records', { _team: 'news', targetfilter: 'categories=news' })));
   s.push(section('articles clearfix col-md-4 col-sm-6', 'Articles',
                     this.subwidget('Records', { _team: 'articles', targetfilter: 'categories=articles' })));
   s.push(section('books clearfix col-md-4 col-sm-6', 'Books',
                     this.subwidget('Records', { _team: 'books', targetfilter: 'categories=books' })));
-  s.push(section('news col-md-4 col-sm-6', 'News',
-                    this.subwidget('Records', { _team: 'news', targetfilter: 'categories=news' })));
+  s.push(section('news col-md-4 col-sm-6', 'Results from all targets',
+                    this.subwidget('Records', { _team: 'main' })));
   s.push('</div>');
   this.node.html(s.join(''));