lowercase widget name: Wimp -> wimp, MKWS-266
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 17 Nov 2014 16:05:56 +0000 (16:05 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 17 Nov 2014 16:05:56 +0000 (16:05 +0000)
forgotten in: 22a5c1a36b18bfdee55bad0d991fc5c3ed57e195

examples/htdocs/mkws-widget-wimp.js

index 4b1425b..89faa3d 100644 (file)
@@ -2,10 +2,10 @@ var mkws_config = {
    service_proxy_auth: "//sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=wimp&password=wimp6363"
 };
 
-mkws.registerWidgetType('Wimp', function() {
+mkws.registerWidgetType('wimp', function() {
   if (!this.config.perpage) this.config.perpage = 5;
   if (!this.config.sort) this.config.sort = "position";
-  this.team.registerTemplate('Wimp', '\
+  this.team.registerTemplate('wimp', '\
 <h2>Results from Wimp</h2>\
 <ul>\
 {{#each hits}}\
@@ -27,7 +27,7 @@ mkws.registerWidgetType('Wimp', function() {
 ');
 
   var that = this;
-  var template = that.team.loadTemplate(that.config.template || "Wimp");
+  var template = that.team.loadTemplate(that.config.template || "wimp");
   this.team.queue("records").subscribe(function(data) {
     that.node.html(template(data));
   });