X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Fmkws-widget-record.js;h=ad624259d077819e24962ebd777262bd7fccdc5d;hp=2f913c6589a163b63b6d1dae485b9f67f8f3bd6c;hb=058ce4a204a9ce4d63b2d319037f60cd9f94ff1b;hpb=8d1d4b22649401af52cfc1f1ba65d9627a149b15 diff --git a/src/mkws-widget-record.js b/src/mkws-widget-record.js index 2f913c6..ad62425 100644 --- a/src/mkws-widget-record.js +++ b/src/mkws-widget-record.js @@ -4,20 +4,20 @@ mkws.registerWidgetType('record', function() { var that = this; var team = this.team; team.queue("records").subscribe(function(data) { - var template = team.loadTemplate(that.config.template || "Record"); + var template = team.loadTemplate(that.config.template || "details"); var targs = mkws.$.extend({}, data.hits[0], that.config.template_vars); that.node.html(template(targs)); }); that.autosearch(); }); -mkws.registerWidgetType('image', function() { +mkws.registerWidgetType('images', function() { mkws.promotionFunction('records').call(this); - if (!this.config.template) this.config.template = 'Image'; + if (!this.config.template) this.config.template = 'images'; }); mkws.registerWidgetType('google-image', function() { - mkws.promotionFunction('image').call(this); + mkws.promotionFunction('images').call(this); if (!this.config.target) this.config.target = 'Google_Images'; }); @@ -27,6 +27,6 @@ mkws.registerWidgetType('lolcat', function() { }); mkws.registerWidgetType('cover-art', function() { - mkws.promotionFunction('image').call(this); + mkws.promotionFunction('images').call(this); if (!this.config.target) this.config.target = 'AmazonBooks'; });