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:
bcf5b06
)
Add "GoogleImage" subclass widget.
author
Mike Taylor
<mike@indexdata.com>
Thu, 3 Apr 2014 16:19:11 +0000
(17:19 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 3 Apr 2014 16:19:11 +0000
(17:19 +0100)
src/mkws-widget-image.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-image.js
b/src/mkws-widget-image.js
index
61bdab1
..
c6d96f1
100644
(file)
--- a/
src/mkws-widget-image.js
+++ b/
src/mkws-widget-image.js
@@
-2,3
+2,8
@@
mkws.registerWidgetType('Image', function() {
mkws.promotionFunction('Record').call(this);
if (!this.config.template) this.config.template = 'Image';
});
+
+mkws.registerWidgetType('GoogleImage', function() {
+ mkws.promotionFunction('Image').call(this);
+ if (!this.config.target) this.config.target = 'Google_Images';
+});