8322fb70834e45f434198e8d212bb46c77886ecc
[mkws-moved-to-github.git] / src / mkws-widget-image.js
1 mkws.registerWidgetType('Image', function() {
2     mkws.promotionFunction('Record').call(this);
3     if (!this.config.template) this.config.template = 'Image';
4 });
5
6 mkws.registerWidgetType('GoogleImage', function() {
7     mkws.promotionFunction('Image').call(this);
8     if (!this.config.target) this.config.target = 'Google_Images';
9 });
10
11 mkws.registerWidgetType('Lolcat', function() {
12     mkws.promotionFunction('GoogleImage').call(this);
13     if (!this.config.autosearch) this.config.autosearch = 'kitteh';
14 });
15
16 mkws.registerWidgetType('Coverart', function() {
17     mkws.promotionFunction('Image').call(this);
18     if (!this.config.target) this.config.target = 'AmazonBooks';
19 });