projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a53ae
)
The Credo widget's Reference subwidget is now passed a "paragraphs"
author
Mike Taylor
<mike@indexdata.com>
Thu, 29 May 2014 15:22:40 +0000
(16:22 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 29 May 2014 15:22:40 +0000
(16:22 +0100)
parameter of 1, so that only the first paragraph of the Wikipedia
article is used.
examples/htdocs/mkws-widget-credo.js
patch
|
blob
|
history
diff --git
a/examples/htdocs/mkws-widget-credo.js
b/examples/htdocs/mkws-widget-credo.js
index
a41ec88
..
59a9a13
100644
(file)
--- a/
examples/htdocs/mkws-widget-credo.js
+++ b/
examples/htdocs/mkws-widget-credo.js
@@
-44,7
+44,7
@@
mkws.registerWidgetType('Credo', function() {
s.push('<td class="main">');
s.push(section('encyclopaedia', 'Topic Page: <span class="x-mkws-title"/>',
- this.subwidget('Reference', { _team: 'ref' })));
+ this.subwidget('Reference', { _team: 'ref', paragraphs: 1 })));
// The Images widget needs to be in our team so we can set its template
s.push(section('image', 'Images',
this.subwidget('GoogleImage', { maxrecs: 4, template: 'CredoImage' })));