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:
7ef0a64
)
Use Mindmap widget (which, OK, doesn't exist yet).
author
Mike Taylor
<mike@indexdata.com>
Thu, 22 May 2014 13:34:43 +0000
(14:34 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 22 May 2014 13:34:43 +0000
(14:34 +0100)
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
d0cbfe2
..
d50f2c3
100644
(file)
--- a/
examples/htdocs/mkws-widget-credo.js
+++ b/
examples/htdocs/mkws-widget-credo.js
@@
-35,7
+35,7
@@
mkws.registerWidgetType('Credo', function() {
s.push('<td class="side">');
s.push(section('mindmap', 'Create a Mind Map for ### title',
s.push('<td class="side">');
s.push(section('mindmap', 'Create a Mind Map for ### title',
- '### Is there a way to make a mind-map?'));
+ this.subwidget('Mindmap', { _team: 'main', facet: 'subject' })));
s.push(section('topics', 'Related Topics',
this.subwidget('Facet', { _team: 'main', facet: 'subject' })));
s.push('</td>');
s.push(section('topics', 'Related Topics',
this.subwidget('Facet', { _team: 'main', facet: 'subject' })));
s.push('</td>');
@@
-77,3
+77,8
@@
mkws.registerWidgetType('Credo', function() {
return s.join('');
}
});
return s.join('');
}
});
+
+
+mkws.registerWidgetType('Mindmap', function() {
+ this.node.html("### We do not yet have a Mindmap widget");
+});