From 5517706533080442856007ca42e5e2762f93baae Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 4 Apr 2014 14:04:32 +0100 Subject: [PATCH] Move all image-related widgets into mkws-widget-record.js --- src/mkws-widget-record.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/mkws-widget-record.js b/src/mkws-widget-record.js index 4d4031c..f1167de 100644 --- a/src/mkws-widget-record.js +++ b/src/mkws-widget-record.js @@ -2,3 +2,23 @@ mkws.registerWidgetType('Record', function() { mkws.promotionFunction('Records').call(this); if (!this.config.maxrecs) this.config.maxrecs = 1; }); + +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'; +}); + +mkws.registerWidgetType('Lolcat', function() { + mkws.promotionFunction('GoogleImage').call(this); + if (!this.config.autosearch) this.config.autosearch = 'kitteh'; +}); + +mkws.registerWidgetType('Coverart', function() { + mkws.promotionFunction('Image').call(this); + if (!this.config.target) this.config.target = 'AmazonBooks'; +}); -- 1.7.10.4