Rename all the templates MKWS-313
[mkws-moved-to-github.git] / src / mkws-widget-record.js
index 6ee1547..ba3fce2 100644 (file)
@@ -4,7 +4,7 @@ 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));
   });
@@ -12,7 +12,7 @@ mkws.registerWidgetType('record', function() {
 });
 
 mkws.registerWidgetType('image', function() {
-  1mkws.promotionFunction('records').call(this);
+  mkws.promotionFunction('records').call(this);
   if (!this.config.template) this.config.template = 'Image';
 });